Files
swupd-client/test/functional/bundleremove/remove-parse-args.bats
Castulo Martinez f71b84f22d Renaming existing exit codes for consistency
Renaming codes following these rules:
- All codes should start with SWUPD_ so we never get confused what
code comes from swupd
- Always separate codes that contain multiple words using an underscore
SWUPD_MULTI_WORD_ERROR instead of using SWUPDMULTIWORDERROR
- Code 0 is reserved for SWUPD_SUCCESS (or SWUPD_OK)
- Code 1 is reserved to be used as "no" by commands that return a boolean
state (e.g. swupd autoupdate, check-update)

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2019-01-24 15:23:15 -08:00

13 lines
280 B
Bash
Executable File

#!/usr/bin/env bats
load "../testlib"
@test "REM013: Ensure bundle name is passed as an option when removing a bundle" {
run sudo sh -c "$SWUPD bundle-remove $SWUPD_OPTS"
assert_status_is "$SWUPD_INVALID_OPTION"
assert_in_output "Error: missing bundle(s) to be removed"
}