-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix replace-output-directory #37
base: main
Are you sure you want to change the base?
Conversation
output_dir="/".join( | ||
self.stage_input_dirs[stage_type].split("/")[:-1] | ||
) | ||
+ "/output", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For clarity, here I would do:
output_dir = os.path.join(self.stage_input_dirs[stage_type], "output")
if leg.leg_type == a3.LegType.BOUND: | ||
expected_output_dir = "output".join( | ||
stage.input_dir.rsplit("input", 1) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use os.path.join. Thanks!
@@ -348,6 +349,38 @@ def setup_calc(mock_run_process): | |||
setup_calc.setup(bound_leg_sysprep_config=cfg, free_leg_sysprep_config=cfg) | |||
yield setup_calc | |||
|
|||
@pytest.fixture | |||
def setup_calc_with_input_path(self, setup_calc): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please just change all of these tmp dirs to used "temp_input_" - this will reduce duplication and speed things up.
Description
Ensure only the last part of the path is changed.
input_calc/bound/input
would get replaced withinput_calc/bound/output
, rather thanoutput_calc/bound/output
.Close #34.
Status
Could you please review @fjclark