summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorThomas Weber <towe75@googlemail.com>2021-07-26 21:25:01 +0200
committerThomas Weber <towe75@googlemail.com>2021-08-02 17:30:53 +0200
commit34b28d95986a08bdd74dd89ce6647458cda75731 (patch)
tree8ce4462fa013832eaf713bd7a4c4552ec061fd91 /cmd/podman
parentcdbbd79155a7752843f2b420c3036ce6c390a3b6 (diff)
downloadpodman-34b28d95986a08bdd74dd89ce6647458cda75731.tar.gz
podman-34b28d95986a08bdd74dd89ce6647458cda75731.tar.bz2
podman-34b28d95986a08bdd74dd89ce6647458cda75731.zip
e2e tests: re-enable and fix podman stats tests
Renamed podman pod stats test specs to distinguish them from podman stats tests. podman stats tests where disabled by a +build flag. Fix podman stats format test, add negative test. Fix podman stats cli command, exit non-zero on invalid format string. Add tests for podman stats interval flag. Signed-off-by: Thomas Weber <towe75@googlemail.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/containers/stats.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/containers/stats.go b/cmd/podman/containers/stats.go
index 69fef7b79..11e8f6870 100644
--- a/cmd/podman/containers/stats.go
+++ b/cmd/podman/containers/stats.go
@@ -17,7 +17,6 @@ import (
"github.com/containers/podman/v3/utils"
"github.com/docker/go-units"
"github.com/pkg/errors"
- "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
@@ -140,7 +139,7 @@ func stats(cmd *cobra.Command, args []string) error {
return report.Error
}
if err := outputStats(report.Stats); err != nil {
- logrus.Error(err)
+ return err
}
}
return nil