mirror of
https://github.com/sheumann/hush.git
synced 2025-01-27 06:34:03 +00:00
* testsuite/runtest (show_result): Change UPASS to XPASS.
(run_applet_testcase): Likewise.
This commit is contained in:
parent
6b140ea5a9
commit
fa144713b8
@ -8,7 +8,7 @@ show_result ()
|
|||||||
local testcase=$2
|
local testcase=$2
|
||||||
local status=0
|
local status=0
|
||||||
|
|
||||||
if [ $resolution = UPASS -o $resolution = FAIL ]; then
|
if [ $resolution = XPASS -o $resolution = FAIL ]; then
|
||||||
status=1
|
status=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -25,7 +25,6 @@ run_applet_testcase ()
|
|||||||
local testcase=$2
|
local testcase=$2
|
||||||
|
|
||||||
local status=0
|
local status=0
|
||||||
local U=
|
|
||||||
local X=
|
local X=
|
||||||
|
|
||||||
local uc_applet=$(echo $applet | tr a-z A-Z)
|
local uc_applet=$(echo $applet | tr a-z A-Z)
|
||||||
@ -46,7 +45,6 @@ run_applet_testcase ()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q "^# XFAIL$" $testcase; then
|
if grep -q "^# XFAIL$" $testcase; then
|
||||||
U=U
|
|
||||||
X=X
|
X=X
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -54,7 +52,7 @@ run_applet_testcase ()
|
|||||||
pushd tmp >/dev/null
|
pushd tmp >/dev/null
|
||||||
|
|
||||||
if . ../$testcase >/dev/null 2>&1; then
|
if . ../$testcase >/dev/null 2>&1; then
|
||||||
show_result ${U}PASS $testname
|
show_result ${X}PASS $testname
|
||||||
status=$!
|
status=$!
|
||||||
else
|
else
|
||||||
show_result ${X}FAIL $testname
|
show_result ${X}FAIL $testname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user