Update patch

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 188fa59ac0
commit 871d3947ca
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,4 +1,4 @@
From e7bf10727318be0209e058628288e3d3b48f5a8b Mon Sep 17 00:00:00 2001
From 7860be68defbae89ac2baab06b8052abac1cc946 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Sun, 7 Jul 2019 16:36:34 +0200
Subject: [PATCH] Avoid using python in the tests
@ -10,7 +10,7 @@ Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs
index 5e65ba3..aa050e2 100644
index ee77aa4..e9c7118 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -39,8 +39,8 @@
@ -24,7 +24,7 @@ index 5e65ba3..aa050e2 100644
//! let shared_child = SharedChild::spawn(&mut command).unwrap();
//! let child_arc = Arc::new(shared_child);
//!
@@ -230,14 +230,12 @@ mod tests {
@@ -232,14 +232,12 @@ mod tests {
use std::sync::Arc;
pub fn true_cmd() -> Command {
@ -36,12 +36,12 @@ index 5e65ba3..aa050e2 100644
pub fn sleep_forever_cmd() -> Command {
- let mut cmd = Command::new("python");
- cmd.arg("-c").arg("import time; time.sleep(1000000000)");
- cmd.arg("-c").arg("import time; time.sleep(1000000)");
+ let mut cmd = Command::new("sleep");
+ cmd.arg("infinity");
cmd
}
--
2.22.0
2.23.0

Loading…
Cancel
Save