Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/TestHarness/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

block_dir = 'blocks'

def _is_command_option(token):
"""Return whether a command-line token is an option name rather than an option value."""
return token.startswith('--')

class EnhancedEncoder(json.JSONEncoder):
def default(self, o):
if is_dataclass(o):
Expand Down Expand Up @@ -575,7 +579,7 @@ def construct_command_line(self, instance: nodeDefinition):
if '-' in arg and arg not in repeatable:
if arg in sysdcmd:
i = sysdcmd.index(arg)
if sysdcmd[i+1] != '-':
if i + 1 < len(sysdcmd) and not _is_command_option(sysdcmd[i+1]):
sysdcmd.pop(i+1)
sysdcmd.pop(i)
sysdcmd.extend(specificList)
Expand Down