Merge branch 'wip-tests' into wip-tests-build-refactor

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval committed 2021-02-24 18:48:26 +01:00
commit 1efdbeda16
28 files changed
+703 -221

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
set -eu
cmd=""
if [ "$#" -lt 1 ]; then
cmd="/bin/sh"
else
cmd=$1
shift
fi
PID_FILE=$(dirname "$0")/test-root/running_test.pid
if [ -f "$PID_FILE" ] ; then
target=$(cat "$PID_FILE")
target=$(pgrep -P "$target")
else
echo "No test running!"
exit 1
fi
"$(dirname "$0")"/testenv_exec.sh "$target" "$cmd" "$@"