Skip to content
Snippets Groups Projects
Commit 763fcf62 authored by Anne Philipp's avatar Anne Philipp
Browse files

corrected function argument list of submit_job_to_ecgate

parent 451bb197
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ def install_via_gateway(c):
put_file_to_ecserver(ecd, tarball_name, c.install_target,
c.ecuid, c.ecgid)
submit_job_to_ecserver(ecd + '/python/', c.install_target,
result_code = submit_job_to_ecserver(ecd + '/python/', c.install_target,
'compilejob.ksh')
print 'job compilation script has been submitted to ecgate for ' + \
......
......@@ -120,14 +120,13 @@ class TestTools():
def test_fail_submit_job_to_ecserver(self):
with pytest.raises(SystemExit) as pytest_wrapped_e:
submit_job_to_ecserver('${HOME}', 'ecgate', 'job.ksh')
submit_job_to_ecserver('ecgate', 'job.ksh')
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == '... ECACCESS-JOB-SUBMIT FAILED!'
def test_success_submit_job_to_ecserver(self):
result = submit_job_to_ecserver('TestData/testfile.txt',
'ecgate', 'TestData/testfile.txt')
result = submit_job_to_ecserver('ecgate', 'TestData/testfile.txt')
assert result == 0
......
......@@ -160,7 +160,7 @@ def submit(jtemplate, c, queue):
with open(job_file, 'w') as f:
f.write('\n'.join(lftextondemand))
submit_job_to_ecserver('', queue, job_file)
result_code = submit_job_to_ecserver(queue, job_file)
else:
# --------- create operational job script ----------------------------------
......@@ -186,7 +186,7 @@ def submit(jtemplate, c, queue):
with open(job_file, 'w') as f:
f.write('\n'.join(lftextoper))
submit_job_to_ecserver('', queue, job_file)
result_code = submit_job_to_ecserver(queue, job_file)
# --------------------------------------------------------------------------
print 'You should get an email with subject flex.hostname.pid'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment