fix the output leak from error test case for config/remove Upstream-commit: 7baaa90481 Component: cli
7baaa90481