commit 49ec33ebca2e4c77ab13b986dcaf904cd1277b99 Author: Damian Johnson atagar@torproject.org Date: Wed May 24 14:38:51 2017 -0700
Make path check platform agnostic
Good catch from Roger that this wouldn't expand Windows paths. --- test/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/runner.py b/test/runner.py index 9430e82..b40ca19 100644 --- a/test/runner.py +++ b/test/runner.py @@ -197,7 +197,7 @@ class Runner(object): self._test_dir = tempfile.mktemp('-stem-integ')
original_cwd, data_dir_path = os.getcwd(), self._test_dir - self._tor_cmd = stem.util.system.expand_path(tor_cmd) if '/' in tor_cmd else tor_cmd + self._tor_cmd = stem.util.system.expand_path(tor_cmd) if os.path.sep in tor_cmd else tor_cmd
if test.Target.RELATIVE in self.attribute_targets: tor_cwd = os.path.dirname(self._test_dir)
tor-commits@lists.torproject.org