Increase timeout a bit to make s390x work.

This commit is contained in:
Elliott Sales de Andrade 2019-07-16 17:31:28 -04:00
parent 1244575326
commit 7b07127dbe
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/tests/testthat/test-pty.R b/tests/testthat/test-pty.R
index 61b650d..749cfba 100644
--- a/tests/testthat/test-pty.R
+++ b/tests/testthat/test-pty.R
@@ -47,7 +47,7 @@ test_that("pty echo", {
expect_equal(p$read_output(), "foo")
p$write_input("bar\n")
- pr <- p$poll_io(300)
+ pr <- p$poll_io(600)
expect_equal(pr[["output"]], "ready")
if (pr[["output"]] != "ready") stop("no output")
expect_equal(p$read_output(), "bar\r\nfoobar\r\n")

View File

@ -9,6 +9,8 @@ Summary: Execute and Control System Processes
License: MIT
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
# Increase timeout a bit just to get s390x to work.
Patch0001: 0001-Increase-test-timeout.patch
# Here's the R view of the dependencies world:
# Depends:
@ -49,8 +51,12 @@ with a timeout. It can also poll several processes at once.
%prep
%setup -q -c -n %{packname}
pushd %{packname}
%patch0001 -p1
# Don't need coverage; it's not packaged either.
sed -i 's/covr, //g' %{packname}/DESCRIPTION
sed -i 's/covr, //g' DESCRIPTION
popd
%build