Sfoglia il codice sorgente

Prevent rebar3 from seeing any global config

With the hex plugin download it would cause rebar3 tests to fail on any
VM that couldn't load the pre-compiled plugin modules. This just hides
the config and plugin cache from rebar3 when running under this test
script.
fix-mix-build
Paul J. Davis 3 anni fa
parent
commit
44a62c92c1
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. +8
    -0
      test/compile-check.py

+ 8
- 0
test/compile-check.py Vedi File

@ -43,6 +43,14 @@ JTAPP2_URL = "https://github.com/davisp/jtapp2"
REBAR2_URL = "https://github.com/rebar/rebar"
REBAR3_URL = "https://github.com/erlang/rebar3"
# Prevent rebar3 from reading any global configuration. The need
# for setting HOME instead of REBAR3_* variables is because the
# plugin cache can't be set via environment so we just use a
# hammer and set a fake HOME.
os.environ["ASDF_CONFIG_FILE"] = os.path.expanduser("~/.asdfrc")
os.environ["ASDF_DATA_DIR"] = os.path.expanduser("~/.asdf")
os.environ["HOME"] = "./hopefully-not-a-directory"
def init_test_dir():
if not os.path.exists(TEST_DIR):

Caricamento…
Annulla
Salva