qa/check: allow tests to SKIP themselves
This commit is contained in:
parent
60d71d421d
commit
6fd5c75ab3
12
qa/check
12
qa/check
|
@ -18,10 +18,16 @@ for(t in $l){
|
||||||
echo -n $t:
|
echo -n $t:
|
||||||
$t > /tmp/qa.log >[2=1]
|
$t > /tmp/qa.log >[2=1]
|
||||||
st = $status
|
st = $status
|
||||||
if(~ `{echo $st|field 3} PASS) {
|
switch( `{echo $st|field 3} ){
|
||||||
|
case PASS
|
||||||
rm /tmp/qa.log && echo PASS
|
rm /tmp/qa.log && echo PASS
|
||||||
}
|
case SKIP
|
||||||
if not { echo $st && cat /tmp/qa.log; exit $st}
|
echo -n ' SKIP: ' && cat /tmp/qa.log && rm /tmp/qa.log
|
||||||
|
case FAIL
|
||||||
|
echo $st && cat /tmp/qa.log; exit $st
|
||||||
|
case *
|
||||||
|
echo Unexpected test result: $st && cat /tmp/qa.log; exit $st
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue