diff --git a/t/t2001-jsc.t b/t/t2001-jsc.t index c672802148f7..0a166a3f1915 100755 --- a/t/t2001-jsc.t +++ b/t/t2001-jsc.t @@ -238,7 +238,7 @@ EOF test_cmp expected.12.1 output.12.1 " -test_expect_success 'jstat 13: update rdl_alloc' " +test_expect_success 'jstat 13.1: update rdl_alloc' " flux jstat update 1 rdl_alloc '{\"rdl_alloc\": [{\"contained\": {\"cmbdrank\": 0, \"cmbdncores\": 102, \"cmbdngpus\": 4}}]}' && flux kvs get --json $(flux wreck kvs-path 1).rank.0.cores > output.13.1 && flux kvs get --json $(flux wreck kvs-path 1).rank.0.gpus >> output.13.1 && @@ -249,6 +249,15 @@ EOF test_cmp expected.13.1 output.13.1 " +test_expect_success 'jstat 13.2: update r_lite' " + flux jstat update 1 R_lite '{\"R_lite\": [{\"children\": {\"core\": \"0\"}, \"rank\": 0}]}' && + flux kvs get --json $(flux wreck kvs-path 1).R_lite > output.13.2 && + cat > expected.13.2 <<-EOF && +[{\"children\": {\"core\": \"0\"}, \"rank\": 0}] +EOF + test_cmp expected.13.2 output.13.2 +" + 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, \"ncores\":128, \"walltime\": 1800}}' &&