Skip to content

Commit

Permalink
t3027: use test_cmp rather than _json
Browse files Browse the repository at this point in the history
problem: the files _start_ with json but then have other output after
that, so putting them through jq causes errors

solution: use test_cmp instead
  • Loading branch information
trws committed Aug 31, 2024
1 parent da63c48 commit 0c55695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t3027-resource-RV.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test_expect_success 'RV1 is correct on rank and node ID order match' '
quit
EOF
${query} -L ${jgf_orig} -f jgf -F rv1_nosched -t R1.out -P high < cmds001 &&
test_cmp_json R1.out ${exp_dir}/R1.out
test_cmp R1.out ${exp_dir}/R1.out
'

test_expect_success 'RV1 is correct on core ID modified' '
Expand All @@ -33,7 +33,7 @@ test_expect_success 'RV1 is correct on core ID modified' '
quit
EOF
${query} -L ${jgf_mod1} -f jgf -F rv1_nosched -t R2.out -P high < cmds002 &&
test_cmp_json R2.out ${exp_dir}/R2.out
test_cmp R2.out ${exp_dir}/R2.out
'

test_expect_success 'RV1 correct on rank/node ID mismatch + core ID modified' '
Expand All @@ -42,7 +42,7 @@ test_expect_success 'RV1 correct on rank/node ID mismatch + core ID modified' '
quit
EOF
${query} -L ${jgf_mod2} -f jgf -F rv1_nosched -t R3.out -P high < cmds003 &&
test_cmp_json R3.out ${exp_dir}/R3.out
test_cmp R3.out ${exp_dir}/R3.out
'

test_expect_success 'RV1 correct on heterogeneous configuration' '
Expand Down

0 comments on commit 0c55695

Please sign in to comment.