From a107777ebf6c86a682c3fb2ff4a013fe5126b1b9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 5 Sep 2019 21:53:01 -0400 Subject: tests: Test more cases in test_color_ls --- tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index b95be8b..3b1a5af 100755 --- a/tests.sh +++ b/tests.sh @@ -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" -- cgit v1.2.3