@@ -53,7 +53,7 @@ test_expect_success 'dyn-state: node drain does not kill the job' '
5353'
5454
5555test_expect_success ' dyn-state: killing the job on the drained node works' '
56- flux job cancel ${jobid1} &&
56+ flux cancel ${jobid1} &&
5757 flux job wait-event -t 10 ${jobid1} clean
5858'
5959
@@ -72,17 +72,17 @@ test_expect_success 'dyn-state: the drained node with a job not used' '
7272 jobid4=$(flux job submit 1N.json) &&
7373 flux job wait-event -t 10 ${jobid4} start &&
7474 flux resource drain ${rank} &&
75- flux job cancel ${jobid1} &&
75+ flux cancel ${jobid1} &&
7676 flux job wait-event -t 10 ${jobid1} clean &&
7777 jobid5=$(flux job submit 1N.json) &&
7878 test_must_fail flux job wait-event -t 1 ${jobid5} start
7979'
8080
8181test_expect_success ' dyn-state: cancel all jobs' '
82- flux job cancel ${jobid2} &&
83- flux job cancel ${jobid3} &&
84- flux job cancel ${jobid4} &&
85- flux job cancel ${jobid5} &&
82+ flux cancel ${jobid2} &&
83+ flux cancel ${jobid3} &&
84+ flux cancel ${jobid4} &&
85+ flux cancel ${jobid5} &&
8686 flux job wait-event -t 10 ${jobid2} clean &&
8787 flux job wait-event -t 10 ${jobid3} clean &&
8888 flux job wait-event -t 10 ${jobid4} clean &&
@@ -100,15 +100,15 @@ test_expect_success 'dyn-state: drain prevents a full job from running' '
100100 flux resource drain 0 &&
101101 jobid1=$(flux job submit basic.json) &&
102102 test_must_fail flux job wait-event -t 1 ${jobid1} start &&
103- flux job cancel ${jobid1}
103+ flux cancel ${jobid1}
104104'
105105
106106test_expect_success ' dyn-state: a full job blocks a later job under fcfs' '
107107 jobid1=$(flux job submit basic.json) &&
108108 jobid2=$(flux job submit 1N.json) &&
109109 test_must_fail flux job wait-event -t 1 ${jobid2} start &&
110- flux job cancel ${jobid1} &&
111- flux job cancel ${jobid2}
110+ flux cancel ${jobid1} &&
111+ flux cancel ${jobid2}
112112'
113113
114114test_expect_success ' dyn-state: correct unsatifiability after drain' '
@@ -133,11 +133,11 @@ test_expect_success 'dyn-state: a full job skipped for a later job under easy' '
133133 jobid1=$(flux job submit basic.json) &&
134134 jobid2=$(flux job submit 1N.json) &&
135135 flux job wait-event -t 10 ${jobid2} start &&
136- flux job cancel ${jobid2} &&
136+ flux cancel ${jobid2} &&
137137 flux job wait-event -t 10 ${jobid2} clean &&
138138 flux resource undrain 3 &&
139139 flux job wait-event -t 10 ${jobid1} start &&
140- flux job cancel ${jobid1} &&
140+ flux cancel ${jobid1} &&
141141 flux job wait-event -t 10 ${jobid1} clean
142142'
143143
@@ -171,17 +171,17 @@ test_expect_success 'dyn-state: a full job blocks a later job for fcfs queue' '
171171 jobid1=$(flux job submit basic.debug.json) &&
172172 jobid2=$(flux job submit 1N.debug.json) &&
173173 test_must_fail flux job wait-event -t 1 ${jobid1} start &&
174- flux job cancel ${jobid1} &&
175- flux job cancel ${jobid2} &&
174+ flux cancel ${jobid1} &&
175+ flux cancel ${jobid2} &&
176176 flux job wait-event -t 1 ${jobid2} clean
177177'
178178
179179test_expect_success ' dyn-state: a job skipped for a later job for easy queue' '
180180 jobid1=$(flux job submit basic.batch.json) &&
181181 jobid2=$(flux job submit 1N.batch.json) &&
182182 flux job wait-event -t 1 ${jobid2} start &&
183- flux job cancel ${jobid1} &&
184- flux job cancel ${jobid2} &&
183+ flux cancel ${jobid1} &&
184+ flux cancel ${jobid2} &&
185185 flux job wait-event -t 1 ${jobid2} clean
186186'
187187
0 commit comments