From 0698e795461f31b438494126193c4e69918ed9b4 Mon Sep 17 00:00:00 2001 From: Yell0wflash Date: Mon, 3 Sep 2018 10:50:53 +0200 Subject: [PATCH] https://github.com/travis-ci/travis-ci/issues/8589#issuecomment-372947199 --- for_runners/tests/test_boot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/for_runners/tests/test_boot.py b/for_runners/tests/test_boot.py index 0e983f2..2ab6613 100644 --- a/for_runners/tests/test_boot.py +++ b/for_runners/tests/test_boot.py @@ -83,6 +83,12 @@ def test_boot(self): cache_dir_inner.symlink_to(cache_dir, target_is_directory=True) self.assertTrue(cache_dir_inner.exists(), "Don't exists: %s" % cache_dir_inner) + + if "TRAVIS" in os.environ: + # work-a-round for Travic-CI #8589, see: + # https://github.com/travis-ci/travis-ci/issues/8589#issuecomment-372947199 + env["PATH"] = "/opt/python/3.6/bin/:%s" % env["PATH"] + env["HOME"] = temp_path env["TERM"] = "dumb" # pprint(env)