Skip to content

Commit

Permalink
topology2qemuopts: interpret unset SEPARATED_OUTPUT_VARS as 0.
Browse files Browse the repository at this point in the history
Don't require SEPARATED_OUTPUT_VARS to be set in the environment.
Interpret unset one as 0.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Mar 5, 2025
1 parent 38cf029 commit 5b01825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/lib/topology2qemuopts.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
DEFAULT_DIST_SAME_DIE = 11
DEFAULT_DIST_SAME_NODE = 10

separated_output_vars = (os.environ['SEPARATED_OUTPUT_VARS'] == '1')
separated_output_vars = (os.getenv('SEPARATED_OUTPUT_VARS', 0) == '1')

def error(msg, exitstatus=1):
sys.stderr.write("topology2qemuopts: %s\n" % (msg,))
Expand Down

0 comments on commit 5b01825

Please sign in to comment.