Megatest

Diff
Login

Differences From Artifact [07f43a6b01]:

To Artifact [f0fa7bd5e6]:


477
478
479
480
481
482
483




484

485
486
487
488
489
490
491
477
478
479
480
481
482
483
484
485
486
487

488
489
490
491
492
493
494
495







+
+
+
+
-
+







		(exit 1)))
	  (set! db (open-db))
	  (if (args:get-arg "-setlog")
	      (test-set-log! db run-id test-name itemdat (args:get-arg "-setlog")))
	  (if (args:get-arg "-set-toplog")
	      (test-set-toplog! db run-id test-name (args:get-arg "-set-toplog")))
	  (if (args:get-arg "-test-status")
	      (let ((newstat (cond
			      ((number? status)       (if (equal? status 0) "PASS" "FAIL"))
			      ((string->number status)(if (equal? (string->number status) 0) "PASS" "FAIL"))
			      (else status))))
	      (test-set-status! db run-id test-name state status itemdat (args:get-arg "-m"))
		(test-set-status! db run-id test-name state newstatus itemdat (args:get-arg "-m")))
	      (if (and state status)
		  (if (not (args:get-arg "-setlog"))
		      (begin
			(print "ERROR: You must specify :state and :status with every call to -test-status\n" help)
			(sqlite3:finalize! db)
			(exit 6)))))
	  (if (args:get-arg "-runstep")