From f53c0c9eb2a3f6a2a319d510f6ba9431e2f54925 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 19 Feb 2019 01:14:27 +0100 Subject: [PATCH] unset XDG vars in test explicitly in case test is run by hand --- src/integration-tests/gnunet_testing.py.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/integration-tests/gnunet_testing.py.in b/src/integration-tests/gnunet_testing.py.in index 75fffb1ab..c9342ecf0 100644 --- a/src/integration-tests/gnunet_testing.py.in +++ b/src/integration-tests/gnunet_testing.py.in @@ -178,7 +178,7 @@ class StatisticsCondition(Condition): fail = "" op = " == " if (((self.fulfilled == False) and (failed_only == True)) or (failed_only == False)): - logger.debug('%s %s condition in subsystem %s: %s: (expected/real value) %s %s %s %s', self.peer.id[:4].decode("utf-8"), peer.cfg, self.subsystem.ljust(12), self.name.ljust(30), self.value, op, self.result, fail) + logger.debug('%s %s condition in subsystem %s: %s: (expected/real value) %s %s %s %s', self.peer.id[:4].decode("utf-8"), self.peer.cfg, self.subsystem.ljust(12), self.name.ljust(30), self.value, op, self.result, fail) return self.fulfilled @@ -272,6 +272,9 @@ class Peer(object): return False def start(self): + os.unsetenv ("XDG_CONFIG_HOME") + os.unsetenv ("XDG_DATA_HOME") + os.unsetenv ("XDG_CACHE_HOME") self.test.p("Starting peer using cfg " + self.cfg) try: server = subprocess.Popen([self.test.gnunetarm, '-sq', '-c', self.cfg]) -- 2.25.1