Skip to content
Snippets Groups Projects
Commit abb265d4 authored by Nicolas Joly's avatar Nicolas Joly Committed by Morris Jette
Browse files

Test changes for NetBSD

Do not use full path for true utility in testsuite. Its location
differ across systems (/bin/true on Linux and /usr/bin/true on BSD).
parent 243b3dba
No related branches found
No related tags found
No related merge requests found
......@@ -117,8 +117,8 @@ set timeout [expr $max_job_delay + 60 + 60 + 60]
exec $bin_rm -f $file_in
set file [open $file_in "w"]
puts $file "# multi-program configuration file
1,3 /bin/true
0,2 /bin/date
1,3 true
0,2 date
"
close $file
exec $bin_chmod 700 $file_in
......
......@@ -71,9 +71,9 @@ file delete $file_out $file_err
make_bash_script $file_in "
$srun $bin_sleep 500 &
trap /bin/true SIGINT
trap true SIGINT
while /bin/true; do
while true; do
wait
if \[ \$? -ge 128 \]; then
echo \"INTerrupted wait, resuming\"
......
......@@ -13,7 +13,7 @@ test_mode=$5
delay_time=1
while [ $delay_time -le 60 ]
do
$srun -N1 --test-only --immediate /bin/true
$srun -N1 --test-only --immediate true
rc=$?
if [ $rc -eq 0 ]
then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment