about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-06T12·54+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-06T12·54+0100
commit1f94ec3924f132ae6d92b29631a59f9818ba4e31 (patch)
tree28df83d0569d20cda86eb1acfe9aa5b391c0b10b
parent20d059892819d2f06f4da8c1150c91e16df1f8cd (diff)
Clean up a test warning
-rw-r--r--tests/referrers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/referrers.sh b/tests/referrers.sh
index e57b2d8e31ff..0a1c86e0ab19 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