@@ -98,7 +98,7 @@ def setUpClass(cls):
9898 # as a delegated role 'targets/role1', three target files, five key files,
9999 # etc.
100100 cls .SERVER_PORT = random .randint (30000 , 45000 )
101- command = ['python' , '-m' , 'tuf.scripts .simple_server' , str (cls .SERVER_PORT )]
101+ command = ['python' , '-m' , 'tests .simple_server' , str (cls .SERVER_PORT )]
102102 cls .server_process = subprocess .Popen (command , stderr = subprocess .PIPE )
103103 logger .info ('\n \t Server process started.' )
104104 logger .info ('\t Server process id: ' + str (cls .server_process .pid ))
@@ -1094,7 +1094,7 @@ def test_6_get_one_valid_targetinfo(self):
10941094 # The SimpleHTTPServer started in the setupclass has a tendency to
10951095 # timeout in Windows after a few tests.
10961096 SERVER_PORT = random .randint (30000 , 45000 )
1097- command = ['python' , '-m' , 'tuf.scripts .simple_server' , str (SERVER_PORT )]
1097+ command = ['python' , '-m' , 'tests .simple_server' , str (SERVER_PORT )]
10981098 server_process = subprocess .Popen (command , stderr = subprocess .PIPE )
10991099
11001100 # NOTE: Following error is raised if a delay is not long enough:
@@ -1361,7 +1361,7 @@ def test_7_updated_targets(self):
13611361 # The SimpleHTTPServer started in the setupclass has a tendency to
13621362 # timeout in Windows after a few tests.
13631363 SERVER_PORT = random .randint (30000 , 45000 )
1364- command = ['python' , '-m' , 'tuf.scripts .simple_server' , str (SERVER_PORT )]
1364+ command = ['python' , '-m' , 'tests .simple_server' , str (SERVER_PORT )]
13651365 server_process = subprocess .Popen (command , stderr = subprocess .PIPE )
13661366
13671367 # NOTE: Following error is raised if a delay is not long enough to allow
@@ -1493,7 +1493,7 @@ def test_8_remove_obsolete_targets(self):
14931493 # The SimpleHTTPServer started in the setupclass has a tendency to
14941494 # timeout in Windows after a few tests.
14951495 SERVER_PORT = random .randint (30000 , 45000 )
1496- command = ['python' , '-m' , 'tuf.scripts .simple_server' , str (SERVER_PORT )]
1496+ command = ['python' , '-m' , 'tests .simple_server' , str (SERVER_PORT )]
14971497 server_process = subprocess .Popen (command , stderr = subprocess .PIPE )
14981498
14991499 # NOTE: Following error is raised if a delay is not long enough to allow
@@ -1877,8 +1877,8 @@ def setUp(self):
18771877 self .SERVER_PORT = 30001
18781878 self .SERVER_PORT2 = 30002
18791879
1880- command = ['python' , '-m' , 'tuf.scripts .simple_server' , str (self .SERVER_PORT )]
1881- command2 = ['python' , '-m' , 'tuf.scripts .simple_server' , str (self .SERVER_PORT2 )]
1880+ command = ['python' , '-m' , 'tests .simple_server' , str (self .SERVER_PORT )]
1881+ command2 = ['python' , '-m' , 'tests .simple_server' , str (self .SERVER_PORT2 )]
18821882
18831883 self .server_process = subprocess .Popen (command , stderr = subprocess .PIPE ,
18841884 cwd = self .repository_directory )
0 commit comments