From 3c2b4bf9f65fcf6f631d7529a3391c3564b3dc29 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 13 Jun 2013 22:11:15 +0200 Subject: [PATCH] tests/lib.sh: Minor cleanup. --- tests/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib.sh b/tests/lib.sh index 27653f7..897d50e 100644 --- a/tests/lib.sh +++ b/tests/lib.sh @@ -88,7 +88,7 @@ run_test() { export COLORED_STDERR_PRE export COLORED_STDERR_POST # And force writes to a file (unless we are testing the force). - if test "x$force_write" != x; then + if test -n "$force_write"; then COLORED_STDERR_FORCE_WRITE=1 export COLORED_STDERR_FORCE_WRITE fi -- 2.43.2