File: runit_should_not_write_to_usr.patch

package info (click to toggle)
r-bioc-oligo 1.70.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,104 kB
  • sloc: ansic: 1,172; makefile: 11; sh: 9
file content (25 lines) | stat: -rw-r--r-- 1,215 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 07 Sep 2021 14:40:48 +0200
Origin: https://lists.debian.org/debian-r/2021/09/msg00040.html
Description: Prevent RUnit from writing to /usr

--- a/tests/doRUnit.R
+++ b/tests/doRUnit.R
@@ -22,12 +22,12 @@ if( require( "RUnit", quietly=TRUE ) ) {
 
 	pathReport <- file.path( path, "report" )
 
-	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="" ) )
+	#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="" ) )
 
-	printHTMLProtocol( tests, fileName=paste( pathReport, ".html", sep="" ) )
+	#printHTMLProtocol( tests, fileName=paste( pathReport, ".html", sep="" ) )
 
 	tmp <- getErrors( tests )
 	if( tmp$nFail > 0 | tmp$nErr > 0 ){