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

--test-only takes precidence over --batch option

parent 541599db
No related branches found
No related tags found
No related merge requests found
......@@ -134,12 +134,7 @@ int srun(int ac, char **av)
/* now global "opt" should be filled in and available,
* create a job from opt
*/
if (opt.batch) {
if (_run_batch_job() < 0)
exit (1);
exit (0);
} else if (opt.test_only) {
if (opt.test_only) {
int rc = allocate_test();
if (rc) {
slurm_perror("allocation failure");
......@@ -148,6 +143,11 @@ int srun(int ac, char **av)
info("allocation success");
exit (0);
} else if (opt.batch) {
if (_run_batch_job() < 0)
exit (1);
exit (0);
} else if (opt.no_alloc) {
info("do not allocate resources");
sig_setup_sigmask();
......
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