pkmoore / rrapper

Wrap rr in order to inject abnormal system call behavior
3 stars 5 forks source link

Auto detect mutators #152

Closed YuxiangChai closed 5 years ago

pkmoore commented 5 years ago

I get one failing test on this branch:

======================================================================
ERROR: Failure: ValueError (Attempted relative import beyond toplevel package)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/preston/rrapper/crashsim/local/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/home/preston/rrapper/crashsim/local/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/home/preston/rrapper/crashsim/local/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/preston/rrapper/test_inject.py", line 14, in <module>
    from inject import exit_with_status
  File "/home/preston/rrapper/src/inject.py", line 51, in <module>
    from Mutators import *
  File "/home/preston/rrapper/src/Mutators/test_UnusualFiletype.py", line 11, in <module>
    from ..consts import DEFAULT_CONFIG_PATH
ValueError: Attempted relative import beyond toplevel package

----------------------------------------------------------------------

Run nosetests on your setup and let me know if you get different results

pkmoore commented 5 years ago

Looks good. Thanks!