示例#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", {})
示例#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', {})
示例#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', {})
示例#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
示例#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
示例#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