Skip to content

Commit

Permalink
Call the tmt-file-submit script directly
Browse files Browse the repository at this point in the history
The `tmt-file-submit` script is executable so it should not be
necessary to use `bash` explicitly when submitting files from
beakerlib.
  • Loading branch information
psss committed Oct 22, 2024
1 parent c05919d commit ff07f97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tmt/frameworks/beakerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def get_environment_variables(
return Environment({
'BEAKERLIB_DIR': EnvVarValue(invocation.path),
'BEAKERLIB_COMMAND_SUBMIT_LOG': EnvVarValue(
f'bash {invocation.guest.scripts_path / tmt.steps.execute.TMT_FILE_SUBMIT_SCRIPT.source_filename}') # noqa: E501
invocation.guest.scripts_path /
tmt.steps.execute.TMT_FILE_SUBMIT_SCRIPT.source_filename),
})

@classmethod
Expand Down

0 comments on commit ff07f97

Please sign in to comment.