mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-03 04:01:34 +00:00
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>
13 lines
280 B
Bash
Executable File
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"
|
|
|
|
}
|