diff options
author | Ashley Cui <acui@redhat.com> | 2020-06-30 17:21:52 -0400 |
---|---|---|
committer | Ashley Cui <acui@redhat.com> | 2020-07-02 13:30:59 -0400 |
commit | 9a1543caec75a7b02dd2ec9a1111756bb1716454 (patch) | |
tree | fb1223410fe7ce9e0831a39c73a70bd9efa0caee /test/e2e/containers_conf_test.go | |
parent | e84695213e35c22ba085e3831cbd025cd55a4c84 (diff) | |
download | podman-9a1543caec75a7b02dd2ec9a1111756bb1716454.tar.gz podman-9a1543caec75a7b02dd2ec9a1111756bb1716454.tar.bz2 podman-9a1543caec75a7b02dd2ec9a1111756bb1716454.zip |
Add --tz flag to create, run
--tz flag sets timezone inside container
Can be set to IANA timezone as well as `local` to match host machine
Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'test/e2e/containers_conf_test.go')
-rw-r--r-- | test/e2e/containers_conf_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/containers_conf_test.go b/test/e2e/containers_conf_test.go index a2ef7eb4a..9530448b5 100644 --- a/test/e2e/containers_conf_test.go +++ b/test/e2e/containers_conf_test.go @@ -211,4 +211,13 @@ var _ = Describe("Podman run", func() { Expect(session.ExitCode()).To(Equal(0)) Expect(session.LineInOuputStartsWith("search")).To(BeFalse()) }) + + It("podman run containers.conf timezone", func() { + //containers.conf timezone set to Pacific/Honolulu + session := podmanTest.Podman([]string{"run", ALPINE, "date", "+'%H %Z'"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(ContainSubstring("HST")) + + }) }) |