From 21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 12 May 2022 16:43:33 +1000 Subject: 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 --- test/distro/ubuntu | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'test/distro/ubuntu') diff --git a/test/distro/ubuntu b/test/distro/ubuntu index 781daab..3ce156d 100644 --- a/test/distro/ubuntu +++ b/test/distro/ubuntu @@ -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 -- cgit v1.2.3