Commit 356e71a6 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch '51-execute-only-command-line-option-does-not-work' into 'master'

Resolve "--execute-only command line option does not work"

Closes #51

This was just a small issue, which I have solved. I also added a new test case for the `--execute-only` command line option.

See merge request !51
parents 130abfee eb83312c
Pipeline #5149 passed with stages
in 9 minutes and 49 seconds
......@@ -253,6 +253,33 @@ def test_verify_missing():
def test_verify_execute_only():
test_dir = tempfile.mkdtemp(prefix='bobtest_')
# define dummy parameters
parameters = [
'-d', 'dummy',
'-p', 'dummy',
'-e', 'dummy',
'-a', 'dummy',
'-vs', 'test_missing',
'--temp-directory', test_dir,
'--result-directory', test_dir,
'--preferred-package', '',
'--imports', '',
'--execute-only', 'preprocessing', 'score-computation',
from import main
if os.path.exists(test_dir):
def test_internal_raises():
test_dir = tempfile.mkdtemp(prefix='bobtest_')
# define dummy parameters
......@@ -271,7 +271,7 @@ def initialize(parsers, command_line_parameters = None, skips = []):
if skips is not None and args.execute_only is not None:
for skip in skips:
if skip not in args.execute_only:
setattr("args", "skip_%s" % skip.replace("-", "_"), True)
setattr(args, "skip_%s" % skip.replace("-", "_"), True)
if args.parallel is not None:
args.grid ="local", number_of_parallel_processes = args.parallel)
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