Files
Castulo Martinez 4d0a6d29a1 Implement bundle-remove --orphans flag
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>
2020-05-08 09:30:50 -07:00

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