Parse the args string to extract ini file and config.
(args_str)
| 27 | return 1 |
| 28 | |
| 29 | def parse_args(args_str): |
| 30 | """Parse the args string to extract ini file and config.""" |
| 31 | # Look for -f <inifile> and -c <config> patterns |
| 32 | ini_match = re.search(r'-f\s+(\S+)', args_str) |
| 33 | config_match = re.search(r'-c\s+(\S+)', args_str) |
| 34 | |
| 35 | ini_file = ini_match.group(1) if ini_match else "omnetpp.ini" |
| 36 | config = config_match.group(1) if config_match else "General" |
| 37 | |
| 38 | return ini_file, config |
| 39 | |
| 40 | def create_run_specific_args(original_args, run_number): |
| 41 | """Create new args string with specific run number.""" |
no outgoing calls
no test coverage detected