]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/setup.sh
tests: inject '-t 1' to `read` during tests
[zsh-autoenv.git] / tests / setup.sh
index 49b0b3e7ba4d0809886f35847b62c87e61d1571f..efa99ab86e845b0b2385c46e317f3674bd8117d3 100644 (file)
@@ -1,3 +1,6 @@
 # Ensure we have our mocked out ENV_AUTHORIZATION_FILE
 
 [[ $ENV_AUTHORIZATION_FILE[0,4] == '/tmp' ]] || return 1
+
+# Inject timeout for `read` while running tests.
+_AUTOENV_TEST_READ_ARGS='-t 1'