def __init__(self, path, auto_reboot_args=None, keep_explorer=False, add_all_devices=False):
        """Record test results in json file

        Args:
            path (str): File path to record the results
            auto_reboot (bool): Whether reboot when harness die
        """
        super(SimpleTestResult, self).__init__()
        self.path = path
        self.auto_reboot_args = auto_reboot_args
        self.result = json.load(open(self.path, 'r'))
        self.log_handler = None
        self.started = None
        self.keep_explorer = keep_explorer
        self.add_all_devices = add_all_devices
        SimpleTestResult.executions += 1
        logger.info('Initial state is %s', json.dumps(self.result, indent=2))
def __init__ ( self , path , auto_reboot_args = None , keep_explorer = False , add_all_devices = False ) : super ( SimpleTestResult , self ) . __init__ ( ) self . path = path self . auto_reboot_args = auto_reboot_args self . result = json . load ( open ( self . path , 'r' ) ) self . log_handler = None self . started = None self . keep_explorer = keep_explorer self . add_all_devices = add_all_devices SimpleTestResult . executions += 1 logger . info ( 'Initial state is %s' , json . dumps ( self . result , indent = 2 ) )
Record test results in json file

        Args:
            path (str): File path to record the results
            auto_reboot (bool): Whether reboot when harness die