gnucash maint: Revert "Fix query period in test-account-get-trans-type-splits-interval."

John Ralls jralls at code.gnucash.org
Sat Mar 18 16:13:07 EDT 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/14fde85a (commit)
	from  https://github.com/Gnucash/gnucash/commit/23da0f85 (commit)



commit 14fde85a5d890b782f08f0196133fdc073c6e724
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Mar 18 13:11:16 2017 -0700

    Revert "Fix query period in test-account-get-trans-type-splits-interval."
    
    This reverts commit 23da0f858ce0bed11bc35156108433e9d5974f48.
    Although the period test failed on maint on my system--both Mac and
    Ubuntu 14.04 VM--the fix fails on Travis-CI.

diff --git a/src/report/report-system/test/test-report-utilities.scm b/src/report/report-system/test/test-report-utilities.scm
index 4bce98c..d6d26ac 100644
--- a/src/report/report-system/test/test-report-utilities.scm
+++ b/src/report/report-system/test/test-report-utilities.scm
@@ -27,8 +27,7 @@
          (start-date-tp (NDayDelta end-date-tp 10))
          (q-end-date-tp (gnc-dmy2timespec-end test-day test-month test-year))
          (q-start-date-tp (gnc-dmy2timespec test-day test-month test-year))
-;; Queries 5 days because start time is 00:00:00 and end time is 23:59:59.
-         (q-start-date-tp (NDayDelta q-start-date-tp 4)))
+         (q-start-date-tp (NDayDelta q-start-date-tp 5)))
 
     (let* ((accounts (env-create-account-structure-alist env (list "Assets"
 								   (list (cons 'type ACCT-TYPE-ASSET))
@@ -43,9 +42,4 @@
 							      ACCT-TYPE-ASSET
 							      q-start-date-tp q-end-date-tp)))
 	;; 10 is the right number (5 days, two splits per tx)
-	(if (and (equal? 10 (length splits))) #t
-            (begin
-              (format #t "~a~a~a~a~%" "Creation Start: " (strftime "%F %T" (localtime (car start-date-tp))) " Creation End: " (strftime "%F %T" (localtime (car end-date-tp))))
-              (format #t "~a~a~a~a~%" "Query Start: " (strftime "%F %T" (localtime (car q-start-date-tp))) " Query End: " (strftime "%F %T" (localtime (car q-end-date-tp))))
-              (format #t "~a~a~%" "Incorrect number of splits " (length splits))
-              #f))))))
+	(and (equal? 10 (length splits)))))))



Summary of changes:
 src/report/report-system/test/test-report-utilities.scm | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)



More information about the gnucash-changes mailing list