Skip to content

Commit

Permalink
t: add --tree to "view-bank -P" in tests
Browse files Browse the repository at this point in the history
Problem: The parsable option for viewing bank heirarchies in the
flux-accounting database is meant just to be another option for the
--tree option, but now the -P option requires --tree to also be passed
when calling view-bank. There are multiple tests in the flux-accounting
testsuite that call -P without --tree, and thus, these tests fail.

Add --tree to the view-bank -P calls in the testsuite.
  • Loading branch information
cmoussa1 committed Nov 26, 2024
1 parent 6cb0380 commit 6e95300
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion t/t1036-hierarchy-small-no-tie-db.t
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test_expect_success 'view database hierarchy' '
'

test_expect_success 'view database hierarchy in a parsable format' '
flux account view-bank -P root > small_no_tie_parsable.test &&
flux account view-bank --tree -P root > small_no_tie_parsable.test &&
test_cmp ${EXPECTED_FILES}/small_no_tie_parsable.txt small_no_tie_parsable.test
'

Expand Down
2 changes: 1 addition & 1 deletion t/t1037-hierarchy-small-tie-db.t
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test_expect_success 'view database hierarchy' '
'

test_expect_success 'view database hierarchy in a parsable format' '
flux account view-bank -P root > small_tie_parsable.test &&
flux account view-bank --tree -P root > small_tie_parsable.test &&
test_cmp ${EXPECTED_FILES}/small_tie_parsable.txt small_tie_parsable.test
'

Expand Down
2 changes: 1 addition & 1 deletion t/t1038-hierarchy-small-tie-all-db.t
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test_expect_success 'view database hierarchy' '
'

test_expect_success 'view database hierarchy in a parsable format' '
flux account view-bank -P root > small_tie_all_parsable.test &&
flux account view-bank --tree -P root > small_tie_all_parsable.test &&
test_cmp ${EXPECTED_FILES}/small_tie_all_parsable.txt small_tie_all_parsable.test
'

Expand Down

0 comments on commit 6e95300

Please sign in to comment.