diff --git a/build-aux/test-env.in b/build-aux/test-env.in
index 52082c650f8d4be7ed4343feef95d329c41d2a2d..aaadcf205b336d0329f4c713d0b33c771d93091e 100644
--- a/build-aux/test-env.in
+++ b/build-aux/test-env.in
@@ -132,6 +132,7 @@ then
 
 	for file in "$bootstrap_directory"/guile-*
 	do
+	    [ -f "$file" ] &&					\
 	    "@abs_top_builddir@/pre-inst-env"			\
 		guix download "file://$file" > /dev/null
 	done