Overview
Comment: | Fixed mishandling of failed step in ezstep and added a test for failed case |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
93749b40da8a5efb6e8202320fda58aa |
User & Date: | matt on 2011-10-09 12:40:36 |
Other Links: | manifest | tags |
Context
2011-10-09
| ||
23:54 | Added toggles to hide tests based on PASS, FAIL etc. check-in: e2c3e19524 user: matt tags: trunk | |
12:40 | Fixed mishandling of failed step in ezstep and added a test for failed case check-in: 93749b40da user: matt tags: trunk | |
11:36 | Completed eztests, well, except for full validation of eztests check-in: 1b0a53f5b9 user: matt tags: trunk | |
Changes
Modified launch.scm from [085cab6512] to [bb212116ec].
︙ | |||
32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | + + + + + | ;; ezsteps were going to be coded as ;; stepname[,predstep1,predstep2 ...] [{VAR1=first,second,third}] command to execute ;; BUT ;; now are ;; stepname {VAR=first,second,third ...} command ... ;; given an exit code and whether or not logpro was used calculate OK/BAD ;; return #t if we are ok, #f otherwise (define (steprun-good? logpro exitcode) (or (eq? exitcode 0) (and logpro (eq? exitcode 2)))) (define (launch:execute encoded-cmd) (let* ((cmdinfo (read (open-input-string (base64:base64-decode encoded-cmd))))) (setenv "MT_CMDINFO" encoded-cmd) (if (list? cmdinfo) ;; ((testpath /tmp/mrwellan/jazzmind/src/example_run/tests/sqlitespeed) (test-name sqlitespeed) (runscript runscript.rb) (db-host localhost) (run-id 1)) (let* ((testpath (assoc/default 'testpath cmdinfo)) (work-area (assoc/default 'work-area cmdinfo)) |
︙ | |||
118 119 120 121 122 123 124 | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | - + + - + + + + + - - + + + + + + + + + + + + + | (thread-sleep! 2) (loop (+ i 1))) ))))) ;; then, if runscript ran ok (or did not get called) ;; do all the ezsteps (if any) (if ezsteps (let* ((testconfig (read-config (conc work-area "/testconfig") #f #t)) ;; FIXME??? is allow-system ok here? |
︙ |
Added tests/tests/eztest_fail/testconfig version [869f3145d8].
|
Modified tests/tests/eztest_pass/testconfig from [fb08d0b50f] to [55e83172e9].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + + | [setup] [ezsteps] |
︙ |
Modified utils/mt_ezstep from [8f412827c1] to [3ac68c5b77].
| 1 2 3 4 5 6 7 8 | - + |
|
︙ |