summaryrefslogtreecommitdiff
path: root/test/tests/find-python-executable.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/find-python-executable.bash')
-rw-r--r--test/tests/find-python-executable.bash8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/tests/find-python-executable.bash b/test/tests/find-python-executable.bash
index 9a91a74..561b882 100644
--- a/test/tests/find-python-executable.bash
+++ b/test/tests/find-python-executable.bash
@@ -1,18 +1,16 @@
test_description='can find python executable with different names'
. '../test-lib.bash'
-if ${USE_VAGRANT}; then
- DOTBOT_EXEC="/dotbot/bin/dotbot" # revert to calling it as a shell script
-fi
-
# the test machine needs to have a binary named `python`
test_expect_success 'setup' '
mkdir ~/tmp_bin &&
(
IFS=:
for p in $PATH; do
- find $p -maxdepth 1 -mindepth 1 -exec sh -c \
+ if [ -d $p ]; then
+ find $p -maxdepth 1 -mindepth 1 -exec sh -c \
'"'"'ln -sf {} $HOME/tmp_bin/$(basename {})'"'"' \;
+ fi
done
) &&
rm -f ~/tmp_bin/python &&