From d0140239ebd8cad782542e834bd7ea6ef8cb22a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 13 Feb 2023 15:43:18 -0500 Subject: [PATCH] Tests: snapshot tests complain that nothing is output MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/regression/tools/snapshots/test_ust_fast | 2 +- tests/regression/tools/snapshots/test_ust_long | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1