Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
agroce committed Aug 25, 2024
1 parent 762d321 commit 4c29e9a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
import subprocess

import pytest

def test_record_replay():
r = subprocess.call(["gcc -o toy test/toy.c"], shell=True)
assert(r == 0)
assert r == 0

with open("out1.txt", 'w') as f:
r = subprocess.call(["mkdir mutants; muttfuzz \"./toy\" toy --score --avoid_repeats --stop_on_repeat --repeat_retries 2000 --save_results analysis.csv --save_mutants mutants"], shell=True, stdout=f, stderr=f)
assert(r == 0)
assert r == 0
with open("out1.txt", 'r') as f:
contents = f.read()
assert("FINAL MUTATION SCORE OVER 14 EXECUTED MUTANTS: 57.14%" in contents)

with open("out2.txt", 'w') as f:
r = subprocess.call(["muttfuzz \"./toy\" toy --score --avoid_repeats --stop_on_repeat --save_results s_analysis.csv --use_saved_mutants mutants"], shell=True, stdout=f, stderr=f)
assert(r == 0)
assert r == 0
with open("out2.txt", 'r') as f:
contents = f.read()
assert("FINAL MUTATION SCORE OVER 14 EXECUTED MUTANTS: 57.14%" in contents)

0 comments on commit 4c29e9a

Please sign in to comment.