runtime: fix TestMainBeforeSubCommands

It is simply wrong to test kata-check within before sub commands
as it is NOT before at all. Besides it causes errors if kata is
not installed.

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao
2020-04-29 01:23:30 -07:00
parent 3b5768e6e0
commit a5589196ce

View File

@@ -561,7 +561,6 @@ func TestMainBeforeSubCommands(t *testing.T) {
{[]string{"version"}, false},
{[]string{"sub-command", "-h"}, false},
{[]string{"sub-command", "--help"}, false},
{[]string{"kata-check"}, false},
}
for i, d := range data {