From 18e88d759be6ac5411a37ff67cc1710d9d71f7d5 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Sun, 6 Sep 2015 17:16:35 +0200 Subject: [PATCH] Set config destination to temp file --- .gitignore | 1 + run_tests.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0a45e37a..31e2395d 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ res/i18n/qm res/i18n/lang-* out .directory +temp diff --git a/run_tests.py b/run_tests.py index fcd27d1b..18e88c22 100644 --- a/run_tests.py +++ b/run_tests.py @@ -10,7 +10,8 @@ cmd = 'python -m pretenders.server.server --host 127.0.0.1 --port 50000' p = subprocess.Popen(shlex.split(cmd)) time.sleep(2) - +# Force saves to be done in temp directory +os.environ["XDG_CONFIG_HOME"] = os.path.join(os.path.dirname(__file__), 'temp') sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'lib'))) sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'src'))) try: -- GitLab