test: set 9pm LOG_PATH to create GitHub action summary from last log

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-09-25 17:58:09 +02:00
parent c3c1ccc837
commit 0d311cc94f
3 changed files with 14 additions and 1 deletions
+4 -1
View File
@@ -63,4 +63,7 @@ jobs:
path: output/${{ steps.vars.outputs.tgz }}
- name: Regression Test
run: |
make test-qeneth
rc=true
make test-qeneth || rc=false
cat test/.log/last/result.md >> $GITHUB_STEP_SUMMARY
eval $rc
+1
View File
@@ -6,4 +6,5 @@
/output*
/x-*
/test/.venv
/test/.log
/local.mk
+9
View File
@@ -91,6 +91,7 @@ EOF
testdir=$(dirname $(readlink -f "$0"))
ixdir=$(readlink -f "$testdir/..")
logdir=$(readlink -f "$testdir/.log")
envdir="$HOME/.infix-test-venv"
qeneth="$ixdir/qeneth/qeneth"
@@ -147,6 +148,14 @@ if [ "$containerize" ]; then
$kvm \
$INFIX_TEST \
"$0" -C "$@"
else
if [ ! -f ~/.9pm.rc ]; then
cat <<-EOF >~/.9pm.rc
# Generated by Infix env
SSH_OPTS: "-o StrictHostKeyChecking=no"
LOG_PATH: "$logdir"
EOF
fi
fi
shift $((OPTIND - 1))