Skip to content
Snippets Groups Projects
Commit 6bec3a06 authored by Moe Jette's avatar Moe Jette
Browse files

Modify test to pass squeue pathname for use with private (test) installations.

parent 42902b57
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ set exit_code 0 ...@@ -40,7 +40,7 @@ set exit_code 0
set test_prog "test$test_id.prog" set test_prog "test$test_id.prog"
# Note this appears as a single argv value to totalviewcli # Note this appears as a single argv value to totalviewcli
set bulk "set issue_dgo false; dset TV::bulk_launch_enabled true; dset TV::bulk_launch_string {$srun -N%N -n%N --jobid=`test7.4.bash %t1` -l --input=none %B/tvdsvr%K -callback_host %H -callback_ports %L -set_pws %P -verbosity %V -working_directory %D %F}" set bulk "set issue_dgo false; dset TV::bulk_launch_enabled true; dset TV::bulk_launch_string {$srun -N%N -n%N --jobid=`test7.4.bash $squeue %t1` -l --input=none %B/tvdsvr%K -callback_host %H -callback_ports %L -set_pws %P -verbosity %V -working_directory %D %F}"
set no_bulk "set issue_dgo false; dset TV::bulk_launch_enabled false" set no_bulk "set issue_dgo false; dset TV::bulk_launch_enabled false"
print_header $test_id print_header $test_id
......
#!/bin/sh #!/bin/sh
# for a file containing a list of allocated nodes, get the slurm # Usage: <squeue path> <node list>
# jobid for the job running on that node for this user # Returns SLURM job id allocated to that node for that user
# #
node=`head -n 1 $1` node=`head -n 1 $2`
user=`id -un` user=`id -un`
jobid=`squeue -h -o %i -u $user -n $node` jobid=`$1 -h -o %i -u $user -n $node`
echo $jobid echo $jobid
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