run-in-py-utils-bt2-env.sh: update error message style
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 10 Nov 2023 14:25:07 +0000 (09:25 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Feb 2024 21:25:56 +0000 (16:25 -0500)
Also print to the standard error.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ia77de318ec01aa92a80c086df6f68c4240ba9101

tests/utils/run-in-py-env.sh

index 86d5eeb28d5b00d1a75a01ff67b7129abb1dced7..bca648ec89868a0507de81fc0cf092ae1a70bf71 100755 (executable)
@@ -32,11 +32,14 @@ fi
 
 # Sanity check that the BT_TESTS_BUILDDIR value makes sense.
 if [[ ! -f "$BT_TESTS_BUILDDIR/Makefile" ]]; then
-       fold -w 80 -s <<- END
-       $0: BT_TESTS_BUILDDIR does not point to a valid directory (\`$BT_TESTS_BUILDDIR/Makefile\` does not exist).
+       {
+               echo "ERROR: Invalid \`BT_TESTS_BUILDDIR\` variable (\`\$BT_TESTS_BUILDDIR/Makefile\`"
+               echo "doesn't exist)."
+               echo ""
+               echo "If you build out of tree, export and set the \`BT_TESTS_BUILDDIR\` environment"
+               echo "variable to the built \`tests\` directory."
+       } >&2
 
-       If building out-of-tree, set BT_TESTS_BUILDDIR to point to the \`tests\` directory in the build tree.
-       END
        exit 1
 fi
 
This page took 0.024698 seconds and 4 git commands to generate.