Skip to content

Commit

Permalink
Add username to test output files for test_up.sh (#1471)
Browse files Browse the repository at this point in the history
Because, I suppose, someone else might want to run tests on my personal
build server.

Co-authored-by: Alan Hanson <[email protected]>
  • Loading branch information
leftwo and Alan Hanson authored Sep 25, 2024
1 parent be2bab6 commit 2192805
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/test_up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ function ctrl_c() {
exit 1
}

# Use the id of the current user to make a unique path
user=$(id -u -n)
# Downstairs regions go in this directory
testdir="/var/tmp/test_up"
testdir="/var/tmp/test_up-$user"
if [[ -d ${testdir} ]]; then
rm -rf ${testdir}
fi

# Store log files we want to keep in /tmp/test_up/.txt as this is what
# buildomat will look for and archive
test_output_dir="/tmp/test_up"
test_output_dir="/tmp/test_up-$user"
rm -rf ${test_output_dir} 2> /dev/null
mkdir -p ${test_output_dir}

Expand Down

0 comments on commit 2192805

Please sign in to comment.