summaryrefslogtreecommitdiff
path: root/inst
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-04-07 09:26:01 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-04-07 09:26:01 +0200
commitc7ef26e798556c6906034db65d369f11c74c2a3a (patch)
tree4d70adbccebc3376cb0b1063118ef8b672bbee45 /inst
parent2c0c2d7e77773f7b252dde2818a4d59e52d0f85b (diff)
Fail early if Guix command does not exist.
Diffstat (limited to 'inst')
-rw-r--r--inst/unitTests/test_guix.install.R3
1 files changed, 3 insertions, 0 deletions
diff --git a/inst/unitTests/test_guix.install.R b/inst/unitTests/test_guix.install.R
index f762744..3593f11 100644
--- a/inst/unitTests/test_guix.install.R
+++ b/inst/unitTests/test_guix.install.R
@@ -1,3 +1,6 @@
test.guix.install <- function () {
checkException(guix.install("foo", guix="/doesnot/exist"))
+
+ msg <- geterrmessage()
+ checkTrue(grepl("Failed to run Guix command", msg))
}