Commit d5c7b50c authored by Martin Schorb's avatar Martin Schorb
Browse files

launcher test all targets

parent a44ed63c
......@@ -60,17 +60,27 @@ def test_run():
if not 'spark' in target:
# check wrong script
rs1['status'] = 'launch'
rs1['logfile'] = os.path.join(params.render_log_dir, 'tests', 'test_render.log')
rs1['logfile'] = os.path.join(params.render_log_dir, 'tests', 'test_render_wrongscript.log')
rs1['id'] = run(pyscript='/thisscriptclearlydoesnotexist', logfile=rs1['logfile'], target=target)
time.sleep(5)
while status(rs1)[0] == 'pending':
print('Wait for test job to start on ' + computeoption['label'] + '.')
time.sleep(10)
assert status(rs1)[0] == 'Error while excecuting ' + str(rs1['id']) + '.'
# check successful run of test script
rs1['status'] = 'launch'
rs1['id'] = run(target=target)
rs1['logfile'] = os.path.join(params.render_log_dir, 'tests', 'test_render_run.log')
rs1['id'] = run(logfile=rs1['logfile'], target=target)
time.sleep(5)
while status(rs1)[0] == 'pending':
print('Wait for test job to start on ' + computeoption['label'] + '.')
time.sleep(10)
assert status(rs1)[0] == 'running'
time.sleep(35)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment