From a8ef22d7c9b9dbbe523e39a0e57f81498c4a70a8 Mon Sep 17 00:00:00 2001 From: Hanne Moa Date: Tue, 21 Nov 2023 14:25:36 +0100 Subject: [PATCH] gvfbyhtjuk --- tests/integration/pping_test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/integration/pping_test.py b/tests/integration/pping_test.py index 26ef0c57ef..bc71d603ea 100644 --- a/tests/integration/pping_test.py +++ b/tests/integration/pping_test.py @@ -77,10 +77,8 @@ def get_root_method(): if os.geteuid() == 0: return [] elif os.system("sudo true") == 0: + sys.path.append(str(BINDIR)) pythonpath = ":".join(sys.path) - if pythonpath[0] != ":": - pythonpath = ":" + pythonpath - pythonpath = str(BINDIR) + pythonpath return ["sudo", "-E", "PYTHONDIR=%s" % pythonpath] elif os.system("gosu root true") == 0: return ["gosu", "root"]