From 58d2e589fb4dbcc23cfc5ddd3f886a32a0ab759e Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 7 Mar 2019 15:15:50 -0700 Subject: BATS: new tests, and improvements to existing ones New: - podman exec - podman load (requires #2674) - CLI parsing (regression test for #2574) Improved: - help: test "podman NoSuchCommand", and subcommands - help: test "podman cmd" without required args - pod: start with --infra=false; this allows running rootless - log: also run 'logs' after container is run - log: test -f with two containers Also, use helpful descriptions for skip_if_rootless Tested on f29, root and rootless. As soon as podman-remote supports rm, I'll start testing that too. Signed-off-by: Ed Santiago --- test/system/300-cli-parsing.bats | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/system/300-cli-parsing.bats (limited to 'test/system/300-cli-parsing.bats') diff --git a/test/system/300-cli-parsing.bats b/test/system/300-cli-parsing.bats new file mode 100644 index 000000000..92c073102 --- /dev/null +++ b/test/system/300-cli-parsing.bats @@ -0,0 +1,15 @@ +#!/usr/bin/env bats -*- bats -*- +# +# Various command-line parsing regression tests that don't fit in elsewhere +# + +load helpers + +@test "podman cli parsing - quoted args - #2574" { + # 1.1.2 fails with: + # Error: invalid argument "true=\"false\"" for "-l, --label" \ + # flag: parse error on line 1, column 5: bare " in non-quoted-field + run_podman run --rm --label 'true="false"' $IMAGE true +} + +# vim: filetype=sh -- cgit v1.2.3-54-g00ecf