AssertionError: Job 1 has different completion status in test. Now Failed. Originally was Finished
assert 'Failed' == 'Finished'
- Finished
+ Failed
Stacktrace
testProjectPath = '/home/jenkins/workspace/CCP4/c7-g9-py39/devtools/test-install/test/test101/ProjectZips/xia2dials_test_2.ccp4_project.zip'
def test_eval(testProjectPath):
# Creating the test object runs i2
i2test = TSuite(testProjectPath)
> i2test.HasItRun()
test101/RunTests/testSuite.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <testSuite.TSuite object at 0x7fec4e639bb0>
def HasItRun(self):
# This should cover basic failures in running the project.
# Both the template & re-run jobs should have run to completion, otherwise triggers an assert.
for job in self.jobinfo:
# Check job complete status, as written out by i2
assert len(job) == 3
> assert job[1] == job[2], ("Job " + job[0] +
" has different completion status in test. Now "
+ job[1] + ". Originally was " + job[2])
E AssertionError: Job 1 has different completion status in test. Now Failed. Originally was Finished
E assert 'Failed' == 'Finished'
E - Finished
E + Failed
test101/RunTests/testSuite.py:172: AssertionError