-
Notifications
You must be signed in to change notification settings - Fork 157
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
Conversation
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]>
@@ -187,6 +187,48 @@ def safemain(main, mainpath): | |||
sys.exit(255) | |||
|
|||
|
|||
def run_ret(cmd, *, one_cmd: str = None, err_prefix=None, logfile=None): |
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.
i want to know what it is used for? usage scenario?
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.
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
@ys44kim , @mhs4670go , PTAL |
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.
LGTM
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.
LGTM
This will introduce run_ret method in utils which will return with process return code.