summaryrefslogtreecommitdiff
path: root/test/tests/shim.bash
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2020-01-03 15:20:00 -0500
committerAnish Athalye <me@anishathalye.com>2020-01-03 15:34:46 -0500
commit6d24613b0b453e546fa4e9defc695d8f982743c9 (patch)
tree7e5124b2606284ef761cd69fcb8892d0038d297d /test/tests/shim.bash
parent1e1885c45a28190dc1cbde993a9ddcf1729ee4d1 (diff)
Unify Vagrant and Travis-CI tests
This patch makes the tests (including the test driver) run entirely inside Vagrant, which avoids calling the very slow `vagrant` driver many times for running the tests. On my machine, `./test` runs in 22 seconds, down from hundreds of seconds prior to this patch. This also has the nice side effect of matching how the Travis CI tests were run, so there's no need for a separate `test_travis` anymore.
Diffstat (limited to 'test/tests/shim.bash')
-rw-r--r--test/tests/shim.bash9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/tests/shim.bash b/test/tests/shim.bash
index 2ed7d54..ddacae3 100644
--- a/test/tests/shim.bash
+++ b/test/tests/shim.bash
@@ -4,11 +4,7 @@ test_description='install shim works'
test_expect_success 'setup' '
cd ${DOTFILES}
git init
-if ${USE_VAGRANT}; then
- git submodule add /dotbot dotbot
-else
- git submodule add ${BASEDIR} dotbot
-fi
+git submodule add ${BASEDIR} dotbot
cp ./dotbot/tools/git-submodule/install .
echo "pear" > ${DOTFILES}/foo
'
@@ -18,9 +14,6 @@ cat > ${DOTFILES}/install.conf.yaml <<EOF
- link:
~/.foo: foo
EOF
-if ! ${USE_VAGRANT}; then
- sed -i "" "1 s/sh$/python/" ${DOTFILES}/dotbot/bin/dotbot
-fi
${DOTFILES}/install
'