Skip to content

Commit 72b50f4

Browse files
committed
VFS-1172, merge with develop
1 parent 0c36605 commit 72b50f4

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

docker/ct_run.py

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@
172172
config['sys.config']['covered_dirs'] = docker_dirs
173173
config['sys.config']['covered_excluded_modules'] = excl_mods
174174

175-
print(json.dumps(data))
176-
print('')
177-
print('')
178175
with open(file, 'w') as jsonFile:
179176
jsonFile.write(json.dumps(data))
180177

@@ -211,21 +208,21 @@
211208
cmd=ct_command,
212209
shed_privileges=(platform.system() == 'Linux'))
213210

214-
# ret = docker.run(tty=True,
215-
# rm=True,
216-
# interactive=True,
217-
# workdir=os.path.join(script_dir, 'test_distributed'),
218-
# reflect=[(script_dir, 'rw'),
219-
# ('/var/run/docker.sock', 'rw')],
220-
# name='testmaster_{0}'.format(uid),
221-
# hostname='testmaster.{0}.dev.docker'.format(uid),
222-
# image=args.image,
223-
# command=['python', '-c', command])
224-
#
225-
# os.remove(new_cover)
211+
ret = docker.run(tty=True,
212+
rm=True,
213+
interactive=True,
214+
workdir=os.path.join(script_dir, 'test_distributed'),
215+
reflect=[(script_dir, 'rw'),
216+
('/var/run/docker.sock', 'rw')],
217+
name='testmaster_{0}'.format(uid),
218+
hostname='testmaster.{0}.dev.docker'.format(uid),
219+
image=args.image,
220+
command=['python', '-c', command])
221+
222+
os.remove(new_cover)
226223
if args.cover:
227224
for file in env_descs:
228225
os.remove(file)
229226
shutil.move(file + '.bak', file)
230-
#
231-
# sys.exit(ret)
227+
228+
sys.exit(ret)

0 commit comments

Comments
 (0)