Beispiel #1
0
    def dump_state(self, call_no):
        """Get the state dump at the specified call no."""

        p = self._retrace(["-D", str(call_no)])
        state = jsondiff.load(p.stdout)
        p.wait()
        return state.get("parameters", {})
Beispiel #2
0
    def dump_state(self, call_no):
        '''Get the state dump at the specified call no.'''

        p = self._retrace([
            '-D', str(call_no),
        ])
        state = jsondiff.load(p.stdout)
        p.wait()
        return state.get('parameters', {})
Beispiel #3
0
    def dump_state(self, call_no):
        '''Get the state dump at the specified call no.'''

        p = self._retrace([
            '-D', str(call_no),
        ])
        state = jsondiff.load(p.stdout)
        p.wait()
        return state.get('parameters', {})
Beispiel #4
0
    def dump_state(self, call_no):
        '''Get the state dump at the specified call no.'''

        cmd = [
            options.retrace,
            '-D', str(call_no),
        ] + self.args
        p = subprocess.Popen(cmd, env=self.env, stdout=subprocess.PIPE, stderr=NULL)
        state = jsondiff.load(p.stdout)
        p.wait()
        return state
Beispiel #5
0
 def getRefState(self, refStateFileName):
     stream = open(refStateFileName, 'rt')
     from jsondiff import load
     state = load(stream, strip_images=False)
     self.adjustRefState(state)
     return state
Beispiel #6
0
 def getRefState(self, refStateFileName):
     stream = open(refStateFileName, 'rt')
     from jsondiff import load
     state = load(stream, strip_images=False)
     self.adjustRefState(state)
     return state