podman/hack
Ed Santiago bf94ebf423 System tests: tighten 'is' operator
Fix day-one sloppiness: when I first wrote this framework
it compared strings using 'expr', not '=', to be more
forgiving of extra cruft in output. This was a bad decision.
It means that warnings or additional text are ignored:

    is "all is ok, NOT!"  "all is ok"  <-- this would pass

Solution: tighten up the 'is' check. Use '=' (direct
compare) first. If it fails, look for wild cards ('*')
or character classes ('[') in the expect string. If
so, and only then, use 'expr'. And, thanks to a clever
suggestion from Luap99, include '(using expr)' in the
error message when we do so; this could make it easier
for a developer to understand a string mismatch.

This change exposes a lot of instances in which we weren't
doing proper comparisons. Fix those. Thankfully, there
weren't as many as I'd feared.

Also, and completely unrelated, add '-T' flag to bats
helper, for showing timing results. (I will open this
as a separate PR if requested. I too find it offensive
to jumble together unrelated commits.)

Signed-off-by: Ed Santiago <santiago@redhat.com>
2021-09-30 13:32:51 -06:00
..
podman-registry-go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
apparmor_tag.sh Use bash binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
bats System tests: tighten 'is' operator 2021-09-30 13:32:51 -06:00
branch_commits.rb Add script for identifying commits in release branches 2021-05-17 16:40:35 -04:00
btrfs_installed_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
btrfs_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
check_root.sh Use bash binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
get_ci_vm.sh Cirrus: Make use of shared get_ci_vm container 2021-04-05 15:38:04 -04:00
golangci-lint.sh [NO TESTS NEEDED] Update linter 2021-02-10 13:25:40 +01:00
install_bats.sh Install bats as root 2020-09-18 12:50:25 -05:00
install_catatonit.sh Use bash binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
install_golangci.sh hack/install_golangci.sh: smarter install 2021-01-17 17:15:23 +01:00
libdm_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
libsubid_tag.sh Add support for libsubid 2021-08-27 08:13:01 -04:00
man-page-checker Switch use of Flags to Options 2020-10-21 08:37:57 -04:00
podman-commands.sh Add shell completion with cobra 2020-11-12 11:38:31 +01:00
podman-registry podman-registry: minor usability updates 2021-08-02 14:01:47 -06:00
podman-socat Document CONTAINERS_CONF/CONTAINERS_STORAGE_CONF Env variables 2021-03-10 06:34:47 -05:00
podmanv2-retry Use bash binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
release.sh Remove changelog.txt from the repository 2021-09-07 10:53:26 -04:00
selinux_tag.sh Use bash binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
swagger-check Fix swagger issue 2021-08-25 15:50:55 -05:00
systemd_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
tree_status.sh Use bash binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
xref-helpmsgs-manpages Fix up build the docs site 2021-09-16 17:41:00 -04:00