aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-04-06 13:28:16 +1000
committerStefano Brivio <sbrivio@redhat.com>2023-04-08 01:12:05 +0200
commit3372cd0902f262b591ecb930a12d0049e69ac372 (patch)
tree57ac3c44cec9b7a3e3e18c3cb58d108359d7f336
parent329149d51a7f8132beefcafc688812e2926607e1 (diff)
downloadpasst-3372cd0902f262b591ecb930a12d0049e69ac372.tar
passt-3372cd0902f262b591ecb930a12d0049e69ac372.tar.gz
passt-3372cd0902f262b591ecb930a12d0049e69ac372.tar.bz2
passt-3372cd0902f262b591ecb930a12d0049e69ac372.tar.lz
passt-3372cd0902f262b591ecb930a12d0049e69ac372.tar.xz
passt-3372cd0902f262b591ecb930a12d0049e69ac372.tar.zst
passt-3372cd0902f262b591ecb930a12d0049e69ac372.zip
test: Initialise ${TRACE} properly
Unlike ${DEBUG} we don't initialize ${TRACE} to 0 if not set, which cases failures when testing it later. That failure acts as though it is false, however it emits spurious errors in script.log, which can make it harder to spot real errors. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-xtest/run3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/run b/test/run
index 5ddb8a9..c72c14c 100755
--- a/test/run
+++ b/test/run
@@ -32,6 +32,9 @@ FAST=${FAST:-1}
# If set, run passt and pasta with debug options
DEBUG=${DEBUG:-0}
+# If set, run passt and pasta with trace options
+TRACE=${TRACE:-0}
+
# If set, tell passt and pasta to take packet captures
PCAP=${PCAP:-0}