aboutgitcodebugslistschat
path: root/test/distro/debian
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-05-12 16:43:33 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-05-19 15:24:15 +0200
commit21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e (patch)
treea8cb305aeed4f76cebbbfa98deba210a83447193 /test/distro/debian
parent4643b9b74c844cced27b3d04d3fcb69d51de8d28 (diff)
downloadpasst-21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e.tar
passt-21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e.tar.gz
passt-21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e.tar.bz2
passt-21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e.tar.lz
passt-21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e.tar.xz
passt-21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e.tar.zst
passt-21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e.zip
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>
Diffstat (limited to 'test/distro/debian')
-rw-r--r--test/distro/debian33
1 files changed, 11 insertions, 22 deletions
diff --git a/test/distro/debian b/test/distro/debian
index 344f453..f748dea 100644
--- a/test/distro/debian
+++ b/test/distro/debian
@@ -61,8 +61,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.
@@ -89,8 +88,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 sysctl -w kernel.unprivileged_userns_clone=1
distro_quick_pasta_test
@@ -114,8 +112,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 sysctl -w kernel.unprivileged_userns_clone=1
distro_quick_pasta_test
@@ -146,8 +143,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 sysctl -w kernel.unprivileged_userns_clone=1
distro_quick_pasta_test
@@ -179,8 +175,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 sysctl -w kernel.unprivileged_userns_clone=1
distro_quick_pasta_test
@@ -204,8 +199,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
distro_quick_pasta_test
@@ -234,8 +228,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
distro_quick_pasta_test
@@ -265,8 +258,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
distro_quick_pasta_test
@@ -289,8 +281,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
distro_quick_pasta_test
@@ -311,8 +302,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
distro_quick_pasta_test
@@ -334,8 +324,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
distro_quick_pasta_test