mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 05:58:09 +00:00
regress/regress.py can be run from inside regress/
This commit is contained in:
parent
cbb2cf3618
commit
4d45f11a08
1 changed files with 6 additions and 1 deletions
7
regress/regress.py
Normal file → Executable file
7
regress/regress.py
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import unittest
|
||||
|
||||
from os.path import dirname, basename, isfile
|
||||
|
@ -12,7 +14,10 @@ def main():
|
|||
unittest.main()
|
||||
|
||||
if __name__ == '__main__':
|
||||
modules = glob.glob(dirname(__file__)+"./*.py")
|
||||
directory = dirname(__file__)
|
||||
if directory == '':
|
||||
directory = '.'
|
||||
modules = glob.glob(directory+"/*.py")
|
||||
__all__ = [ basename(f)[:-3] for f in modules if isfile(f)]
|
||||
suite = unittest.TestSuite()
|
||||
|
||||
|
|
Loading…
Reference in a new issue