1
0
Fork 0
mirror of https://passt.top/passt synced 2025-05-31 05:15:43 +02:00

tests: Simplify explicit checks for command success

A number of individual test cases use '*out' commands to check for success
of specific commands they've issued.  Now that the test harness is testing
for success of all issued commands as a matter of course, we no longer need
to do this.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2022-05-12 16:43:33 +10:00 committed by Stefano Brivio
parent 4643b9b74c
commit 21e9cf7b95
5 changed files with 24 additions and 52 deletions
test/distro

View file

@ -62,8 +62,7 @@ host apt-get update
host apt-get -y install make gcc netcat-openbsd
host make clean
hout RET CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits" make; echo $?
check [ __RET__ -eq 0 ]
host CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits" make
# TODO: pasta test skipped for the moment: clone() as called by NS_CALL hangs
# with wrapper provided by glibc 2.19, probably wrong argument order.
@ -96,8 +95,7 @@ host apt-get update
host apt-get -y install make gcc netcat-openbsd
host make clean
hout RET CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits -Wno-sign-compare" make; echo $?
check [ __RET__ -eq 0 ]
host CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits -Wno-sign-compare" make
# TODO: pasta test skipped for the moment: clone() as called by NS_CALL hangs
# with wrapper provided by glibc 2.19, probably wrong argument order.
@ -127,8 +125,7 @@ host apt-get update
host apt-get -y install make gcc netcat-openbsd
host make clean
hout RET CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits -Wno-sign-compare" make; echo $?
check [ __RET__ -eq 0 ]
host CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits -Wno-sign-compare" make
# TODO: pasta test skipped for the moment: clone() as called by NS_CALL hangs
# with wrapper provided by glibc 2.19, probably wrong argument order.
@ -160,8 +157,7 @@ host dhclient
host apt-get -y install make gcc netcat-openbsd
host make clean
hout RET CFLAGS="-Werror" make; echo $?
check [ __RET__ -eq 0 ]
host CFLAGS="-Werror" make
distro_quick_pasta_test
@ -195,8 +191,7 @@ host apt-get update
host apt-get -y install make gcc netcat-openbsd
host make clean
hout RET CFLAGS="-Werror" make; echo $?
check [ __RET__ -eq 0 ]
host CFLAGS="-Werror" make
host export SHELL="/bin/dash"
host dash