@@ -156,15 +156,15 @@ def runJob(self, vm, runTimeout, maxOutputFileSize, disableNetwork):
156
156
os .getenv ("DOCKER_TANGO_HOST_VOLUME_PATH" ), instanceName
157
157
)
158
158
args = ["docker" , "run" , "--name" , instanceName , "-v" ]
159
- args = args + [ "%s:%s" % (volumePath , "/home/mount" )]
159
+ args . append ( "%s:%s" % (volumePath , "/home/mount" ))
160
160
if vm .cores :
161
- args = args + [ f"--cpus={ vm .cores } " ]
161
+ args . append ( f"--cpus={ vm .cores } " )
162
162
if vm .memory :
163
- args = args + [ "-m" , f"{ vm .memory } m" ]
163
+ args . extend (( "-m" , f"{ vm .memory } m" ))
164
164
if disableNetwork :
165
- args = args + [ "--network" , "none" ]
166
- args = args + [ vm .image ]
167
- args = args + [ "sh" , "-c" ]
165
+ args . append ( "--network" , "none" )
166
+ args . append ( vm .image )
167
+ args . extend (( "sh" , "-c" ))
168
168
169
169
autodriverCmd = (
170
170
"autodriver -u %d -f %d -t %d -o %d autolab > output/feedback 2>&1"
@@ -176,11 +176,11 @@ def runJob(self, vm, runTimeout, maxOutputFileSize, disableNetwork):
176
176
)
177
177
)
178
178
179
- args = args + [
179
+ args . append (
180
180
'cp -r mount/* autolab/; su autolab -c "%s"; \
181
181
cp output/feedback mount/feedback'
182
182
% autodriverCmd
183
- ]
183
+ )
184
184
185
185
self .log .debug ("Running job: %s" % str (args ))
186
186
ret = timeout (args , runTimeout * 2 )
0 commit comments