From 56575ed74533e2d1a42c6f4ec43d224916fde0f2 Mon Sep 17 00:00:00 2001
From: Johannes Boog <johannesboog@yahoo.de>
Date: Wed, 10 Mar 2021 17:35:58 +0100
Subject: [PATCH] [tests] adapt to accept ogs6 executable

---
 tests/testthat/test-sim_utils.R | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/testthat/test-sim_utils.R b/tests/testthat/test-sim_utils.R
index aba22cf..497aa6c 100644
--- a/tests/testthat/test-sim_utils.R
+++ b/tests/testthat/test-sim_utils.R
@@ -2,11 +2,10 @@
 # helper function to skip tests if we don't have OpenGeoSys 6 dependencies
 skip_if_ogs6_missing <- function() {
 
-    ogs6_path <- paste0(unlist(options("r2ogs6.default_ogs6_bin_path")),
-                       "ogs.exe")
+    ogs6_path <- unlist(options("r2ogs6.default_ogs6_bin_path"))
 
     if(!file.exists(ogs6_path)){
-        skip("ogs.exe not available for testing")
+        skip("ogs executable not available for testing")
     }
 
     skip("Skipping tests that call ogs6_run_simulation()")
-- 
GitLab