Check-in [3c4ef51e14]
Not logged in
Overview
SHA1 Hash:3c4ef51e14f521b97ccaee1825ebd77ab49d80d8
Date: 2011-07-13 10:15:55
User: mrwellan
Comment:Added proper updating of parent test status when sub tests are still running
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | manifest
Tags And Properties
Changes

Modified runs.scm from [6bf7e36440b92e0c] to [bee21070b6fe9fcf].

102 SET fail_count=(SELECT count(id) FROM tests WHERE run_id=? AND test 102 SET fail_count=(SELECT count(id) FROM tests WHERE run_id=? AND test 103 pass_count=(SELECT count(id) FROM tests WHERE run_id=? AND test 103 pass_count=(SELECT count(id) FROM tests WHERE run_id=? AND test 104 WHERE run_id=? AND testname=? AND item_path='';" 104 WHERE run_id=? AND testname=? AND item_path='';" 105 run-id test-name run-id test-name run-id test-name) 105 run-id test-name run-id test-name run-id test-name) 106 (sqlite3:execute 106 (sqlite3:execute 107 db 107 db 108 "UPDATE tests 108 "UPDATE tests > 109 SET state=CASE WHEN (SELECT count(id) FROM tests WHERE run_id=? AND > 110 'RUNNING' 109 SET state='COMPLETED', | 111 ELSE 'COMPLETED' END, 110 status=CASE WHEN fail_count > 0 THEN 'FAIL' WHEN pass_count > 0 112 status=CASE WHEN fail_count > 0 THEN 'FAIL' WHEN pass_count > 0 111 WHERE run_id=? AND testname=? AND item_path='';" 113 WHERE run_id=? AND testname=? AND item_path='';" 112 run-id test-name))) | 114 run-id test-name run-id test-name))) 113 (if (and (not (null? comment)) 115 (if (and (not (null? comment)) 114 (car comment)) 116 (car comment)) 115 (sqlite3:execute db "UPDATE tests SET comment=? WHERE run_id=? AND testn 117 (sqlite3:execute db "UPDATE tests SET comment=? WHERE run_id=? AND testn 116 (car comment) run-id test-name item-path)))) 118 (car comment) run-id test-name item-path)))) 117 119 118 (define (test-set-log! db run-id test-name itemdat logf) 120 (define (test-set-log! db run-id test-name itemdat logf) 119 (let ((item-path (item-list->path itemdat))) 121 (let ((item-path (item-list->path itemdat)))

Modified tests/Makefile from [6c479afb2e67b446] to [6cb1ebea0218157b].

3 MEGATEST=$(shell realpath ../megatest) 3 MEGATEST=$(shell realpath ../megatest) 4 4 5 runall : 5 runall : 6 cd ../;make 6 cd ../;make 7 $(MEGATEST) -keepgoing -runall :sysname ubuntu :fsname nfs :datapath non 7 $(MEGATEST) -keepgoing -runall :sysname ubuntu :fsname nfs :datapath non 8 8 9 test : 9 test : 10 csi -I .. ../megatest.scm -- -runall :sysname ubuntu :fsname afs :datapa | 10 csi -b -I .. ../megatest.scm -- -runall :sysname ubuntu :fsname afs :dat 11 cd ../;make test 11 cd ../;make test 12 make runall 12 make runall 13 13 14 dashboard : 14 dashboard : 15 cd ../;make dashboard 15 cd ../;make dashboard 16 ../dashboard & 16 ../dashboard & 17 17 18 remove : 18 remove : 19 (cd ../;make);../megatest -remove-runs :runname %3 -testpatt % -itempat 19 (cd ../;make);../megatest -remove-runs :runname %3 -testpatt % -itempat 20 20 21 runforever : 21 runforever : 22 while(ls); do runname=`date +%F-%R:%S`;/home/matt/data/megatest/megatest 22 while(ls); do runname=`date +%F-%R:%S`;/home/matt/data/megatest/megatest