Skip to content

Commit c686945

Browse files
authored
Update test.sh
1 parent 8fbd687 commit c686945

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/phoenix/test.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
#!/bin/bash
22

3+
tmpbuild=/storage/scratch1/6/sbryngelson3/mytmp_build
4+
currentdir=$tmpbuild/run-$(( RANDOM % 900 ))
5+
mkdir -p $tmpbuild
6+
mkdir -p $currentdir
7+
export TMPDIR=$currentdir
8+
9+
n_test_threads=8
10+
311
build_opts=""
412
if [ "$job_device" = "gpu" ]; then
513
build_opts="--gpu"
614
fi
715

8-
./mfc.sh test --dry-run -j 8 $build_opts
9-
10-
n_test_threads=8
16+
./mfc.sh test --dry-run -j $n_test_thread $build_opts
1117

1218
if [ "$job_device" = "gpu" ]; then
1319
gpu_count=$(nvidia-smi -L | wc -l) # number of GPUs on node
@@ -18,4 +24,7 @@ fi
1824

1925
./mfc.sh test --max-attempts 3 -a -j $n_test_threads $device_opts -- -c phoenix
2026

27+
sleep 10
28+
rm -rf "$currentdir" || true
2129

30+
unset TMPDIR

0 commit comments

Comments
 (0)