From 1f94ec3924f132ae6d92b29631a59f9818ba4e31 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 6 Feb 2014 13:54:44 +0100 Subject: [PATCH] Clean up a test warning --- tests/referrers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/referrers.sh b/tests/referrers.sh index e57b2d8e3..0a1c86e0a 100644 --- a/tests/referrers.sh +++ b/tests/referrers.sh @@ -30,7 +30,7 @@ echo "collecting garbage..." ln -sfn $reference "$NIX_STATE_DIR"/gcroots/ref nix-store --gc -if test "$(sqlite3 ./test-tmp/db/db.sqlite 'select count(*) from Refs')" -ne 0; then +if [ -n "$(type -p sqlite3)" -a "$(sqlite3 ./test-tmp/db/db.sqlite 'select count(*) from Refs')" -ne 0 ]; then echo "referrers not cleaned up" exit 1 fi