We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26d2b64 + 9ec9704 commit 4a2a7c8Copy full SHA for 4a2a7c8
1 file changed
build-scripts/test-on-testmachine
@@ -23,10 +23,17 @@ chroot)
23
;;
24
esac
25
26
+SCRIPT_BASEDIR="$(
27
+ cd "$(dirname "$0")"
28
+ pwd
29
+)" # /home/user/whatever/buildscripts/build-scripts
30
+SCRIPT_BASEDIR="$(dirname "$SCRIPT_BASEDIR")" # /home/user/whatever/buildscripts
31
+SCRIPT_BASEDIR="$(dirname "$SCRIPT_BASEDIR")" # /home/user/whatever
32
+
33
# We still need to perform several cleanup tasks after doing a chroot test run.
34
# So wrap the test execution in an if so that we can proceed with clean-up on error.
35
log_debug "Executing tests on test machine..."
-if remote_script_general "$SCRIPT" "$LOGIN_COMMAND" "$BASEDIR"; then
36
+if remote_script_general "$SCRIPT" "$LOGIN_COMMAND" "$SCRIPT_BASEDIR"; then
37
return_code=0
38
else
39
return_code=$?
0 commit comments