Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion system-data-odbc/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ set -x
if [[ $(id -u) == "0" ]]; then
id testrunner || useradd testrunner || adduser testrunner --disabled-password
chown -R testrunner:testrunner "$(pwd)"
su testrunner -c "$(readlink -f "$0")" "$@"
# root's XDG_RUNTIME_DIR may cause permission errors for the testrunner user
env XDG_RUNTIME_DIR= su testrunner -c "$(readlink -f "$0")" "$@"
exit
fi

Expand Down
3 changes: 2 additions & 1 deletion workload/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ mkdir -p "$(pwd)/workload-temp/"
if [[ $(id -u) == "0" ]]; then
id testrunner || useradd testrunner || adduser testrunner --disabled-password
chmod ugo+rw "$(pwd)/workload-temp/"
su testrunner -c "$(readlink -f "$0")" "$@"
# root's XDG_RUNTIME_DIR may cause permission errors for the testrunner user
env XDG_RUNTIME_DIR= su testrunner -c "$(readlink -f "$0")" "$@"
exit
fi

Expand Down
Loading