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

Move globals to globals.example, force user to copy and edit it.

parent f5f0ba56
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,7 @@ global sacct scancel scontrol sinfo smap squeue srun
# Specify the slurm install directory.
# Used to locate binaries, libraries, and header files.
#
#set slurm_dir "/usr"
set slurm_dir "/home/jette/slurm.way"
set slurm_dir "/usr"
set sacct "${slurm_dir}/bin/sacct"
set scancel "${slurm_dir}/bin/scancel"
set scontrol "${slurm_dir}/bin/scontrol"
......
......@@ -35,16 +35,15 @@ COMPLETIONS=0
# Make sure we are in the desired directory before possibly
# removing files the user does not want to lose.
wc ./globals >/dev/null 2>/dev/null
rc=$?
if [ $rc -eq 0 ]; then
wc ./regression >/dev/null 2>/dev/null
rc=$?
fi
if [ $rc -ne 0 ]; then
if [ ! -x ./regression ]; then
echo "FAILURE: cd to 'testsuite/expect' before starting 'regression'"
exit 1
fi
if [ ! -x ./globals ]; then
echo "FAILURE: copy 'globals.example' to 'globals' and modify as needed"
exit 1
fi
# Remove any recently edited back-up files
/bin/rm -f test*.*% test*input test*output test*error
......
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