diff --git a/tests/test_updater.py b/tests/test_updater.py index 909972ac..d2483e38 100644 --- a/tests/test_updater.py +++ b/tests/test_updater.py @@ -98,7 +98,7 @@ def setUpClass(cls): # as a delegated role 'targets/role1', three target files, five key files, # etc. cls.SERVER_PORT = random.randint(30000, 45000) - command = ['python', 'simple_server.py', str(cls.SERVER_PORT)] + command = ['python', '-m', 'tuf.scripts.simple_server', str(cls.SERVER_PORT)] cls.server_process = subprocess.Popen(command, stderr=subprocess.PIPE) logger.info('\n\tServer process started.') logger.info('\tServer process id: '+str(cls.server_process.pid)) @@ -1701,8 +1701,8 @@ def setUp(self): self.SERVER_PORT = 30001 self.SERVER_PORT2 = 30002 - command = ['python', 'simple_server.py', str(self.SERVER_PORT)] - command2 = ['python', 'simple_server.py', str(self.SERVER_PORT2)] + command = ['python', '-m', 'tuf.scripts.simple_server', str(self.SERVER_PORT)] + command2 = ['python', '-m', 'tuf.scripts.simple_server', str(self.SERVER_PORT2)] self.server_process = subprocess.Popen(command, stderr=subprocess.PIPE, cwd=self.repository_directory)