Files
Castulo Martinez 4cd51ca5d8 Add --orphans flag to bundle-list
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>
2020-05-05 10:37:44 -07:00

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"
}