From c8cb8dc4fcf7f8936ad234816b19b6bf46cb3e96 Mon Sep 17 00:00:00 2001 From: rjpadilla Date: Wed, 21 Apr 2021 04:24:03 +0300 Subject: [PATCH 1/2] update tests/image.bats (fixes #2215) --- tests/image.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/image.bats b/tests/image.bats index 5b558b54f9..7becba46e9 100755 --- a/tests/image.bats +++ b/tests/image.bats @@ -4,4 +4,9 @@ load test-helper @test "$clinom image" { run "${clicmd}" image assert_success && assert_output -p 'release' +} + +@test "$clinom image (too many arguments)" { + run "${clicmd}" image foobar + assert_failure && assert_output -p 'Too many arguments.' } \ No newline at end of file From 33ff25a208f23e03244dd188972f013dbef7e712 Mon Sep 17 00:00:00 2001 From: rjpadilla Date: Wed, 21 Apr 2021 23:42:40 +0300 Subject: [PATCH 2/2] update tests/image.bats (fixes #2215) --- tests/image.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/image.bats b/tests/image.bats index 7becba46e9..7fb66d6710 100755 --- a/tests/image.bats +++ b/tests/image.bats @@ -3,7 +3,7 @@ load test-helper @test "$clinom image" { run "${clicmd}" image - assert_success && assert_output -p 'release' + assert_success && assert_output -p 'release-' } @test "$clinom image (too many arguments)" {