X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=validation.git;a=blobdiff_plain;f=bluval%2Fbluval.py;fp=bluval%2Fbluval.py;h=8ed6bdfb36714f6738f67a302c767593f192bf52;hp=01b402af6b613fd5c5620d24d6f3bcccf5fd9183;hb=5bbec2ac58111c0c48ea2225d605169832e24354;hpb=bd9a2c23681b068c3675ccc228fc641956b3db84 diff --git a/bluval/bluval.py b/bluval/bluval.py index 01b402a..8ed6bdf 100644 --- a/bluval/bluval.py +++ b/bluval/bluval.py @@ -28,20 +28,21 @@ def run_testcase(testcase): """ show_stopper = testcase.get('show_stopper', False) what = testcase.get('what') + variables = "variables.yaml" results = "results/"+testcase.get('layer')+"/"+what test_path = "tests/"+testcase.get('layer')+"/"+what - command = '{} {} {} {}'.format("robot", "-d", results, test_path) + args = ["robot", "-V", variables, "-d", results, test_path] print('Executing testcase {}'.format(testcase['name'])) print(' show_stopper {}'.format(show_stopper)) - print('Invoking {}'.format(command)) + print('Invoking {}'.format(args)) try: - status = subprocess.call(command, shell=True) + status = subprocess.call(args, shell=False) if status != 0 and show_stopper: print('Show stopper testcase failed') return status except OSError: - print('Error while executing {}'.format(command)) + print('Error while executing {}'.format(args)) return -1 return status