mirror of https://github.com/CIRCL/PyCIRCLean
Do not use subprocess.
parent
427442e81f
commit
74fe05cbe1
|
@ -2,8 +2,8 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import subprocess
|
|
||||||
import time
|
from bin.specific import KittenGroomerSpec
|
||||||
|
|
||||||
|
|
||||||
class TestBasic(unittest.TestCase):
|
class TestBasic(unittest.TestCase):
|
||||||
|
@ -12,11 +12,5 @@ class TestBasic(unittest.TestCase):
|
||||||
self.maxDiff = None
|
self.maxDiff = None
|
||||||
|
|
||||||
def test_specific(self):
|
def test_specific(self):
|
||||||
p = subprocess.Popen(['specific.py', '-s', 'tests/src', '-d', 'tests/dst'])
|
spec = KittenGroomerSpec('tests/src', 'tests/dst')
|
||||||
while True:
|
spec.processdir()
|
||||||
p.poll()
|
|
||||||
print(p.returncode)
|
|
||||||
if p.returncode is None:
|
|
||||||
time.sleep(1)
|
|
||||||
else:
|
|
||||||
return
|
|
||||||
|
|
Loading…
Reference in New Issue