mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-03 20:21:29 +00:00
This commit implements the --orphan flag for bundle-remove which can be used to remove bundles that are no longer required by tracked bundles. Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
21 lines
587 B
Bash
Executable File
21 lines
587 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
# Author: Castulo Martinez
|
|
# Email: castulo.martinez@intel.com
|
|
|
|
load "../testlib"
|
|
|
|
@test "REM032: Bundle remove conflicting flags" {
|
|
|
|
# some flags are mutually exclusive
|
|
|
|
run sudo sh -c "$SWUPD bundle-remove $SWUPD_OPTS --orphans --force"
|
|
assert_status_is "$SWUPD_INVALID_OPTION"
|
|
assert_in_output "Error: --orphans and --force options are mutually exclusive"
|
|
|
|
run sudo sh -c "$SWUPD bundle-remove $SWUPD_OPTS --orphans --recursive"
|
|
assert_status_is "$SWUPD_INVALID_OPTION"
|
|
assert_in_output "Error: --orphans and --recursive options are mutually exclusive"
|
|
|
|
}
|