def test_merge(self): mock_device = MockDevice() fuzzer = Fuzzer(mock_device, u'mock-package1', u'mock-target2') fuzzer.merge(['-some-lf-arg=value']) self.assertEqual( mock_device.last, 'ssh -F ' + mock_device.host.ssh_config + ' ::1 run ' + fuzzer.url() + ' -artifact_prefix=data -merge=1' + ' -merge_control_file=data/.mergefile -some-lf-arg=value data/corpus' + ' data/corpus.prev')
def test_merge(self): mock_device = MockDevice() fuzzer = Fuzzer(mock_device, u'mock-package1', u'mock-target2') fuzzer.merge(['-some-lf-arg=value']) self.assertIn( ' '.join( mock_device.get_ssh_cmd([ 'ssh', '::1', 'run', fuzzer.url(), '-artifact_prefix=data/', '-merge=1', '-merge_control_file=data/.mergefile', '-some-lf-arg=value data/corpus/', 'data/corpus.prev/' ])), mock_device.history)