Skip to content
Snippets Groups Projects
Commit f8755d63 authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

tests: fix exit status check

parent 93cd5a31
Branches
Tags
No related merge requests found
......@@ -20,7 +20,7 @@ create_test_action() {
@test "general: error thrown on attempt to run as non-root user" {
run sudo -u vagrant backupninja -f "${BATS_TMPDIR}/backupninja.conf"
[ "$status" -eq 2 ]
[ "$status" -eq 3 ]
[ "${lines[1]}" = "backupninja can only be run as root" ]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment