testing/testcase: don't destroy instance if it was not requested
This should prevent such confusing tracebacks when building software fail: INFO Finished software releases. ERROR:slapos.testing.testcase:Error during request destruction Traceback (most recent call last): File "parts/slapos.core-repository/slapos/testing/testcase.py", line 615, in _cleanup cls.requestDefaultInstance(state='destroyed') File "parts/slapos.core-repository/slapos/testing/testcase.py", line 680, in requestDefaultInstance cls._instance_parameter_dict) AttributeError: type object 'SlapOSInstanceTestCase for ...' has no attribute '_instance_parameter_dict'
Showing
Please register or sign in to comment