diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-09-05 21:53:01 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-09-05 21:53:01 -0400 |
commit | a107777ebf6c86a682c3fb2ff4a013fe5126b1b9 (patch) | |
tree | 082a668075a229b50be3fff78990b879fbc3891e /tests.sh | |
parent | ed6d3933070f7cfbb0607aabe8f9e71ca384791a (diff) | |
download | bfs-a107777ebf6c86a682c3fb2ff4a013fe5126b1b9.tar.xz |
tests: Test more cases in test_color_ls
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2124,7 +2124,9 @@ function test_color_ls() { local ACTUAL="$TMP/${FUNCNAME[0]}.out" fi - LS_COLORS="or=01;31:" invoke_bfs scratch/{link,broken,nested,notdir,relative,absolute} -color -ls | sed 's/.* -> //' >"$ACTUAL" + LS_COLORS="or=01;31:" invoke_bfs scratch/{,link,broken,nested,notdir,relative,absolute} -color -type l -ls \ + | sed 's/.* -> //' \ + | sort -o "$ACTUAL" if [ ! "$UPDATE" ]; then diff -u "$EXPECTED" "$ACTUAL" |