Skip to content

Commit 2192805

Browse files
leftwoAlan Hanson
and
Alan Hanson
authored
Add username to test output files for test_up.sh (#1471)
Because, I suppose, someone else might want to run tests on my personal build server. Co-authored-by: Alan Hanson <alan@oxide.computer>
1 parent be2bab6 commit 2192805

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/test_up.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@ function ctrl_c() {
3838
exit 1
3939
}
4040

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

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

0 commit comments

Comments
 (0)