Skip to content

Commit

Permalink
Merge pull request metomi#2060 from matthewrmshin/t-rose-suite-clean-…
Browse files Browse the repository at this point in the history
…04-sort

t: rose-suite-clean 04: fix sort order issue
  • Loading branch information
oliver-sanders authored Mar 9, 2017
2 parents 9458cbd + ed1dfff commit 24dfc00
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions t/rose-suite-clean/04-only-3.t
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ run_suite
TEST_KEY="$TEST_KEY_BASE-work"
run_pass "$TEST_KEY" rose suite-clean -y -n "$NAME" --only=work
{
echo "[INFO] delete: $HOME/cylc-run/$NAME/log/rose-suite-run.host"
LANG=C sort -r <<__OUT__
[INFO] delete: localhost:$ROOT_DIR_WORK/cylc-run/$NAME/work
LANG=C sort <<__OUT__
[INFO] delete: ${HOME}/cylc-run/${NAME}/log/rose-suite-run.host
[INFO] delete: localhost:${ROOT_DIR_WORK}/cylc-run/${NAME}/work
[INFO] delete: localhost:cylc-run/${NAME}/work
__OUT__
} >"$TEST_KEY.out.expected"
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" "$TEST_KEY.out.expected"
} >"${TEST_KEY}.out.expected"
LANG=C sort "${TEST_KEY}.out" >"${TEST_KEY}.out.sorted"
file_cmp "${TEST_KEY}.out" "${TEST_KEY}.out.sorted" "${TEST_KEY}.out.expected"
#-------------------------------------------------------------------------------
rose suite-clean -q -y --name="$NAME"
exit 0

0 comments on commit 24dfc00

Please sign in to comment.