Skip to content

Commit

Permalink
Fix debug test in Vagrantfile
Browse files Browse the repository at this point in the history
Ever since env_logger started supporting colours, it doesn’t seem worth it to keep track of what is and isn’t in the log output. So just test that it doesn’t print nothing and call it a day.
  • Loading branch information
ogham committed Sep 26, 2018
1 parent a3b2f2b commit 94a00fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions xtests/debug

This file was deleted.

9 changes: 7 additions & 2 deletions xtests/run.sh
Expand Up @@ -276,8 +276,13 @@ $exa -lt 2>&1 | diff -q - $results/error_lt || exit 1


# Debug mode
# (uses an empty directory so it prints nothing to stdout)
EXA_DEBUG="1" $exa $testcases/attributes/dirs/no-xattrs_empty -lh 2>&1 | tail -n 2 | diff -q - $results/debug || exit 1
# What gets logged keeps changing, so instead of checking for an exact output,
# list an empty directory and fail if nothing gets printed.
DEBUG_OUT=$(EXA_DEBUG="1" $exa $testcases/attributes/dirs/no-xattrs_empty -lh 2>&1)
if [ -z "$DEBUG_OUT" ]; then
echo "Debug test produced no output"
exit 1
fi


# And finally...
Expand Down

0 comments on commit 94a00fa

Please sign in to comment.