Increase timeout a bit to make s390x work.
This commit is contained in:
parent
1244575326
commit
7b07127dbe
13
0001-Increase-test-timeout.patch
Normal file
13
0001-Increase-test-timeout.patch
Normal 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")
|
@ -9,6 +9,8 @@ Summary: Execute and Control System Processes
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://CRAN.R-project.org/package=%{packname}
|
URL: https://CRAN.R-project.org/package=%{packname}
|
||||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
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:
|
# Here's the R view of the dependencies world:
|
||||||
# Depends:
|
# Depends:
|
||||||
@ -49,8 +51,12 @@ with a timeout. It can also poll several processes at once.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -c -n %{packname}
|
%setup -q -c -n %{packname}
|
||||||
|
|
||||||
|
pushd %{packname}
|
||||||
|
%patch0001 -p1
|
||||||
|
|
||||||
# Don't need coverage; it's not packaged either.
|
# Don't need coverage; it's not packaged either.
|
||||||
sed -i 's/covr, //g' %{packname}/DESCRIPTION
|
sed -i 's/covr, //g' DESCRIPTION
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user