Skip to content

Commit

Permalink
allow additional options in github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Jul 3, 2024
1 parent d91764a commit 438880c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/github/run_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def fix_path(config_file, path):
def parse_args():
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("--output", "-o", type=str, help="Output file name")
parser.add_argument("--additional_options", "-a", type=str, help="additional options for IsoQuant")
parser.add_argument("config_file", metavar="config_file", type=str, help="configuration .info file")

args = parser.parse_args()
Expand Down Expand Up @@ -123,6 +124,9 @@ def run_isoquant(args, config_dict):
for o in opts:
isoquant_command_list.append(o)

if args.additional_options:
isoquant_command_list += args.additional_options.split()

log.info("IsoQuant command line: " + " ".join(isoquant_command_list))
result = subprocess.run(isoquant_command_list)
if result.returncode != 0:
Expand Down

0 comments on commit 438880c

Please sign in to comment.