mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-08-23 22:46:03 +00:00
4cd51ca5d8
Adding the --orphans flag to bundle-list which shows those bundles that are installed ut no longer required by any tracked bundle. Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
28 lines
838 B
Bash
Executable File
28 lines
838 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
# Author: Castulo Martinez
|
|
# Email: castulo.martinez@intel.com
|
|
|
|
load "../testlib"
|
|
|
|
@test "LST029: List conflicting flags" {
|
|
|
|
# Some flags are mutually exclusive
|
|
|
|
# --orphans & --all
|
|
run sudo sh -c "$SWUPD bundle-list $SWUPD_OPTS --orphans --all"
|
|
assert_status_is "$SWUPD_INVALID_OPTION"
|
|
assert_in_output "Error: --orphans and --all options are mutually exclusive"
|
|
|
|
# --orphans & --has-dep
|
|
run sudo sh -c "$SWUPD bundle-list $SWUPD_OPTS --orphans --has-dep os-core"
|
|
assert_status_is "$SWUPD_INVALID_OPTION"
|
|
assert_in_output "Error: --orphans and --has-dep options are mutually exclusive"
|
|
|
|
# --orphans & --deps
|
|
run sudo sh -c "$SWUPD bundle-list $SWUPD_OPTS --orphans --deps 0s-core"
|
|
assert_status_is "$SWUPD_INVALID_OPTION"
|
|
assert_in_output "Error: --orphans and --deps options are mutually exclusive"
|
|
|
|
}
|