Skip to content

Commit

Permalink
Update test/steps/build.py
Browse files Browse the repository at this point in the history
feat: Tests now use flag as the whole flags to be sent. With this the testing is more flexible.

Co-authored-by: David Girón <[email protected]>
  • Loading branch information
Fubukimaru and duhow authored Nov 17, 2024
1 parent e0712ba commit 07fdd9e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/steps/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ def step_impl(context, file):

@when('I build {file}')
@when('I build {file} with flag {flag}')
@when('I build {file} with flag {flag} {flag_param}')
def step_impl(context, file, flag = "", flag_param = ""):
@when('I build {file} with flag {flag}')
def step_impl(context, file, flag = ""):
# Fullpath is not needed, we always use relatives to the project
# fullpath = os.path.abspath(file)
command = ['asmsx', flag, flag_param, file]
command = ['asmsx']
if flag:
command.extend(flag.split(" "))
command.append(file)
context.build_program = subprocess.run(
command,
stdout=subprocess.PIPE,
Expand Down

0 comments on commit 07fdd9e

Please sign in to comment.