Skip to content

Commit

Permalink
t/t2001-jsc.t: Add ncores to jstatctl tests
Browse files Browse the repository at this point in the history
Add ncores in JSON input for the jsc tests that process other
job submission parameters.
  • Loading branch information
grondo committed Mar 29, 2018
1 parent da72ddd commit 4471f15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t2001-jsc.t
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ test_expect_success 'jstat 10: update procdescs' "
"

test_expect_success 'jstat 11: update rdesc' "
flux jstat update 1 rdesc '{\"rdesc\": {\"nnodes\": 128, \"ntasks\": 128, \"walltime\":3600}}' &&
flux jstat update 1 rdesc '{\"rdesc\": {\"nnodes\": 128, \"ntasks\": 128, \"ncores\":128, \"walltime\":3600}}' &&
flux kvs get --json $(flux wreck kvs-path 1).ntasks > output.11.1 &&
cat > expected.11.1 <<-EOF &&
128
Expand Down Expand Up @@ -249,9 +249,9 @@ EOF

test_expect_success 'jstat 14: update detects bad inputs' "
test_expect_code 42 flux jstat update 1 jobid '{\"jobid\": 1}' &&
test_expect_code 42 flux jstat update 0 rdesc '{\"rdesc\": {\"nnodes\": 128, \"ntasks\": 128, \"walltime\": 1800}}' &&
test_expect_code 42 flux jstat update 1 rdesctypo '{\"rdesc\": {\"nnodes\": 128, \"ntasks\": 128, \"walltime\": 3600}}' &&
test_expect_code 42 flux jstat update 1 rdesc '{\"pdesc\": {\"nnodes\": 128, \"ntasks\": 128, \"walltime\": 2700}}' &&
test_expect_code 42 flux jstat update 0 rdesc '{\"rdesc\": {\"nnodes\": 128, \"ntasks\": 128, \"ncores\":128, \"walltime\": 1800}}' &&
test_expect_code 42 flux jstat update 1 rdesctypo '{\"rdesc\": {\"nnodes\": 128, \"ntasks\": 128, \"ncores\":128, \"walltime\": 3600}}' &&
test_expect_code 42 flux jstat update 1 rdesc '{\"pdesc\": {\"nnodes\": 128, \"ntasks\": 128,\"ncores\":128, \"walltime\": 2700}}' &&
test_expect_code 42 flux jstat update 1 state-pair '{\"unknown\": {\"ostate\": 12, \"nstate\": 11}}'
"

Expand Down

0 comments on commit 4471f15

Please sign in to comment.