[med-svn] [r-cran-doparallel] 08/12: Patch out the test suite trying to write a report to disk

Andreas Tille tille at debian.org
Mon Oct 9 14:03:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository r-cran-doparallel.

commit 9128c698123055b9a475f4f3d3af2e697434cdfb
Author: Gordon Ball <gordon at chronitis.net>
Date:   Mon Jun 13 10:11:38 2016 +0000

    Patch out the test suite trying to write a report to disk
---
 debian/patches/series                   |  1 +
 debian/patches/unittest-no-report.patch | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e762fc2
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+unittest-no-report.patch
diff --git a/debian/patches/unittest-no-report.patch b/debian/patches/unittest-no-report.patch
new file mode 100644
index 0000000..699967e
--- /dev/null
+++ b/debian/patches/unittest-no-report.patch
@@ -0,0 +1,20 @@
+Description: don't write a test summary in a read-only directory
+Author: Gordon Ball <gordon at chronitis.net>
+
+--- a/tests/doRUnit.R
++++ b/tests/doRUnit.R
+@@ -48,14 +48,6 @@
+   ## Report to stdout and text files
+   cat("------------------- UNIT TEST SUMMARY ---------------------\n\n")
+   printTextProtocol(tests, showDetails=FALSE)
+-  printTextProtocol(tests, showDetails=FALSE,
+-                    fileName=paste(pathReport, "Summary.txt", sep=""))
+-  printTextProtocol(tests, showDetails=TRUE,
+-                    fileName=paste(pathReport, ".txt", sep=""))
+- 
+-  ## Report to HTML file
+-  printHTMLProtocol(tests, fileName=paste(pathReport, ".html", sep=""))
+-#  printHTMLProtocol(tests, fileName=file.path(dirname(dirname(getwd())),pkg,"gsDesign-RUnit-Test-Summary.html")) #paste(pathReport, ".html", sep=""))  
+  
+   ## Return stop() to cause R CMD check stop in case of
+   ##  - failures i.e. FALSE to unit tests or

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-doparallel.git



More information about the debian-med-commit mailing list