mirror of https://github.com/MISP/PyMISP
fix: check if path exists in tests
parent
249cf20f35
commit
fc38eadcac
|
@ -51,7 +51,11 @@ urllib3.disable_warnings()
|
|||
|
||||
fast_mode = False
|
||||
|
||||
if not Path('tests/viper-test-files').exists():
|
||||
test_file_path = Path('tests/viper-test-files')
|
||||
|
||||
print(test_file_path, 'exists: ', test_file_path.exists())
|
||||
|
||||
if not test_file_path.exists():
|
||||
print('The test files are missing, pulling it.')
|
||||
os.system('git clone https://github.com/viper-framework/viper-test-files.git tests/viper-test-files')
|
||||
|
||||
|
|
Loading…
Reference in New Issue