diff options
-rwxr-xr-x | tests.sh | 4 | ||||
-rw-r--r-- | tests/test_color_ls.out | 14 |
2 files changed, 13 insertions, 5 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" diff --git a/tests/test_color_ls.out b/tests/test_color_ls.out index 59a791a..b08d894 100644 --- a/tests/test_color_ls.out +++ b/tests/test_color_ls.out @@ -1,6 +1,12 @@ -[01;34mfoo/bar/[0mbaz -[01;34mfoo/bar/[0m[01;31mnowhere[0m -[01;34mfoo/bar/[0m[01;31mnowhere/[0m[01;31mnothing[0m -[01;34mfoo/bar/[0m[01;31mbaz/[0m[01;31mqux[0m [01;31mscratch/foo/[0m[01;31mbar[0m +[01;31mscratch/foo/[0m[01;31mbar[0m +[01;34m/[0m[01;31m__bfs__/[0m[01;31mnowhere[0m [01;34m/[0m[01;31m__bfs__/[0m[01;31mnowhere[0m +[01;34mfoo/bar/[0m[01;31mbaz/[0m[01;31mqux[0m +[01;34mfoo/bar/[0m[01;31mbaz/[0m[01;31mqux[0m +[01;34mfoo/bar/[0m[01;31mnowhere[0m +[01;34mfoo/bar/[0m[01;31mnowhere[0m +[01;34mfoo/bar/[0m[01;31mnowhere/[0m[01;31mnothing[0m +[01;34mfoo/bar/[0m[01;31mnowhere/[0m[01;31mnothing[0m +[01;34mfoo/bar/[0mbaz +[01;34mfoo/bar/[0mbaz |