Commit 3d42fff7 authored by GZhao's avatar GZhao
Browse files

remove system argv test because of confilict with jenkins

parent 15bc5765
Pipeline #4364 failed with stage
in 0 seconds
...@@ -8,19 +8,19 @@ cases = os.path.join(test_dir, 'testcases') ...@@ -8,19 +8,19 @@ cases = os.path.join(test_dir, 'testcases')
output = os.path.join(test_dir, 'test_output') output = os.path.join(test_dir, 'test_output')
config['output'] = output config['output'] = output
from unittest.mock import patch from unittest.mock import patch
os.mkdir(output)
a = [] a = []
import io import io
import shutil import shutil
def clear_output(): def clear_output():
shutil.rmtree(output) if os.path.exists(output)
shutil.rmtree(output)
os.mkdir(output) os.mkdir(output)
class TestMain(unittest.TestCase): class TestMain(unittest.TestCase):
def test_help(self): # def test_help(self):
main(argv = None) # main(argv = None)
def test_quick_run_cmdline(self): def test_quick_run_cmdline(self):
clear_output() clear_output()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment