Skip to content

Commit e35a1db

Browse files
committed
Fix integ test
**Description** Integ test failed at fetching job name. Updated the method in getting full job name (which has 5 random string suffix) **Testing Done** Run integ tests locally and they pass
1 parent 16734e0 commit e35a1db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration_tests/test_happy_case.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ def _execute_test_command(self, command):
6969

7070
def _get_job_name_from_run_output(self, output):
7171
for line in output.splitlines():
72-
if line.startswith('NAME:'):
73-
job_name = line.split('NAME:')[1].strip()
72+
if line.startswith('Job') and "submission file created at" in line:
73+
job_name = line.split(' ')[1].strip()
7474
return job_name
75+
76+
logger.warning(f'No Job name is found from output, returning Job name as None!')
7577
return None
7678

7779
@pytest.mark.order(1)

0 commit comments

Comments
 (0)