• Jérome Perrin's avatar
    testing/testcase: don't destroy instance if it was not requested · abce5180
    Jérome Perrin authored
    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'
    abce5180
testcase.py 25.3 KB