Tests: snapshot tests complain that nothing is output
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Feb 2023 20:43:18 +0000 (15:43 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Feb 2023 21:22:36 +0000 (16:22 -0500)
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 <jeremie.galarneau@efficios.com>
Change-Id: I53783fa783eb5581bf41fc1a5504dbd4e14fa595

tests/regression/tools/snapshots/test_ust_fast
tests/regression/tools/snapshots/test_ust_long

index 1b11c500b9344588dc8e503c23fa9cf6d756e926..9fb4e0068d1c8504a73743c1ca2e340f921bffdc 100755 (executable)
@@ -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
index d0e779a834b8413f30f1d8f287b8ab9e32f1ec85..bc6abac316c00ef63c4b1af9f704629e79e08736 100755 (executable)
@@ -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
This page took 0.025428 seconds and 4 git commands to generate.