-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: run system commands #193
Conversation
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
fn engine_name(&self) -> &str { | ||
dispatch_engines!(self, e, { e.engine_name() }) | ||
} | ||
|
||
async fn sleep(dur: Duration) { | ||
tokio::time::sleep(dur).await | ||
} | ||
|
||
async fn run_command(command: std::process::Command) -> std::io::Result<ExitStatus> { | ||
Command::from(command).status().await | ||
} |
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.
This is a breaking api change. Is it possible to make them default methods?
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.
It does have default implementations. However, new variants in RecordOutput
and TestErrorKind
still break the API. I guess we have to bump the major version.
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!
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Bump the version to v0.16.0 and also include the change log from #194. |
Support running system commands in
slt
files.Signed-off-by: Bugen Zhao [email protected]