Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Timeout support #67

Closed
epage opened this issue Oct 26, 2017 · 3 comments
Closed

Timeout support #67

epage opened this issue Oct 26, 2017 · 3 comments

Comments

@epage
Copy link
Collaborator

epage commented Oct 26, 2017

In getting feedback, there came up the need for timeout support.

We'd have to run the command in a thread, sleep for the time (in small increments?), and then call kill if needed.

https://doc.rust-lang.org/std/process/struct.Child.html#method.kill

@epage
Copy link
Collaborator Author

epage commented Oct 28, 2017

Looks like this will be pretty trivial

https://crates.io/crates/wait-timeout

@epage
Copy link
Collaborator Author

epage commented Oct 28, 2017

Nevermind, it doesn't support getting the output and it doesn't look like it will in the foreseeable future
alexcrichton/wait-timeout#4

@epage
Copy link
Collaborator Author

epage commented May 29, 2018

The responsibility for this is moving over to assert_cmd. This issue will be addressed as assert-rs/assert_cmd#10

@epage epage closed this as completed May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants