Skip to content
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

[one-cmds] Introduce run_ret method in utils #13904

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

seanshpark
Copy link
Contributor

This will introduce run_ret method in utils which will return with process return code.

This will introduce run_ret method in utils which will return with
process return code.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
@seanshpark
Copy link
Contributor Author

@seanshpark seanshpark requested a review from mhs4670go September 2, 2024 23:50
@@ -187,6 +187,48 @@ def safemain(main, mainpath):
sys.exit(255)


def run_ret(cmd, *, one_cmd: str = None, err_prefix=None, logfile=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i want to know what it is used for? usage scenario?

Copy link
Contributor Author

@seanshpark seanshpark Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can read scenario at #13491
existing run() will exit the program if fails.
one-import-onnx wants to check the return code for next process.

#13904 (comment) comment already has the links

@seanshpark
Copy link
Contributor Author

@ys44kim , @mhs4670go , PTAL

@seanshpark seanshpark requested a review from ys44kim September 3, 2024 04:06
Copy link
Contributor

@ys44kim ys44kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@mhs4670go mhs4670go left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@seanshpark seanshpark merged commit d6d1e98 into Samsung:master Sep 3, 2024
9 checks passed
@seanshpark seanshpark deleted the one_cmds_utils_run_ret branch September 3, 2024 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants