diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2022-04-07 09:26:01 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2022-04-07 09:26:01 +0200 |
commit | c7ef26e798556c6906034db65d369f11c74c2a3a (patch) | |
tree | 4d70adbccebc3376cb0b1063118ef8b672bbee45 /inst | |
parent | 2c0c2d7e77773f7b252dde2818a4d59e52d0f85b (diff) |
Fail early if Guix command does not exist.
Diffstat (limited to 'inst')
-rw-r--r-- | inst/unitTests/test_guix.install.R | 3 |
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)) } |