summarylogtreecommitdiffstats
path: root/fix-tests.patch
diff options
context:
space:
mode:
authorBioArchLinuxBot2024-04-11 18:21:05 +0000
committerBioArchLinuxBot2024-04-11 18:21:05 +0000
commita6c86a9746d237f1419747458e0fb55cdd2a24e0 (patch)
tree40b37fb2e6fc30b4f039a2f3a60977948930ccaa /fix-tests.patch
parentd49d78cf030cba7f01cfd5f5445044f8ee6d3894 (diff)
downloadaur-a6c86a9746d237f1419747458e0fb55cdd2a24e0.tar.gz
[lilac] updated to 1.0.5-7
Diffstat (limited to 'fix-tests.patch')
-rw-r--r--fix-tests.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/fix-tests.patch b/fix-tests.patch
new file mode 100644
index 000000000000..bfedd4cb7377
--- /dev/null
+++ b/fix-tests.patch
@@ -0,0 +1,13 @@
+diff --git a/GetoptLong/R/get_options.R b/GetoptLong/R/get_options.R
+index a01c65e..97a80ef 100644
+--- a/GetoptLong/R/get_options.R
++++ b/GetoptLong/R/get_options.R
+@@ -45,7 +45,7 @@ GetoptLong = function(..., help_head = NULL, help_foot = NULL, envir = parent.fr
+ argv_str = NULL, template_control = list(),
+ help_style = GetoptLong.options$help_style) {
+
+- if(is.null(get_scriptname())) {
++ if(is.null(get_scriptname()) || identical(Sys.getenv("GETOPTLONG_TESTING"), "true")) {
+ IS_UNDER_COMMAND_LINE = FALSE
+ } else {
+ IS_UNDER_COMMAND_LINE = TRUE