From: Jérémie Galarneau Date: Mon, 13 Feb 2023 20:43:18 +0000 (-0500) Subject: Tests: snapshot tests complain that nothing is output X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7c83513f27037aac8256175326c0f48567880f63;p=lttng-tools.git Tests: snapshot tests complain that nothing is output The user space snapshot tests invoke a common script that runs the actual tests. In doing so, the parent script's tap generator isn't involved in the production of the tests' tap output and outputs an error message as diagnostic. ok 134 - Wait after kill session daemon # Looks like your test died before it could output anything. `exec`-ing the common script sidesteps the problem by replacing the shell entirely. Signed-off-by: Jérémie Galarneau Change-Id: I53783fa783eb5581bf41fc1a5504dbd4e14fa595 --- diff --git a/tests/regression/tools/snapshots/test_ust_fast b/tests/regression/tools/snapshots/test_ust_fast index 1b11c500b..9fb4e0068 100755 --- a/tests/regression/tools/snapshots/test_ust_fast +++ b/tests/regression/tools/snapshots/test_ust_fast @@ -15,4 +15,4 @@ if [ ! -x "$CURDIR/$TEST_BIN" ]; then BAIL_OUT "No UST test found: $TEST_BIN" fi -./$CURDIR/$TEST_BIN $NR_SNAPSHOT +exec $CURDIR/$TEST_BIN $NR_SNAPSHOT diff --git a/tests/regression/tools/snapshots/test_ust_long b/tests/regression/tools/snapshots/test_ust_long index d0e779a83..bc6abac31 100755 --- a/tests/regression/tools/snapshots/test_ust_long +++ b/tests/regression/tools/snapshots/test_ust_long @@ -15,4 +15,4 @@ if [ ! -x "$CURDIR/$TEST_BIN" ]; then BAIL_OUT "No UST test found: $TEST_BIN" fi -./$CURDIR/$TEST_BIN $NR_SNAPSHOT +exec $CURDIR/$TEST_BIN $NR_SNAPSHOT