diff options
author | Ed Santiago <santiago@redhat.com> | 2020-09-29 12:23:58 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-09-29 12:23:58 -0600 |
commit | 258ccfc3c9f896393161e66c86ad2b11a9a22927 (patch) | |
tree | b26258a181c7426d9ef8d3fee579e7644eb6a971 /test/system/build-testimage | |
parent | 2ee415be90b8d6ab75f9fe579fc1b8690e023d3c (diff) | |
download | podman-258ccfc3c9f896393161e66c86ad2b11a9a22927.tar.gz podman-258ccfc3c9f896393161e66c86ad2b11a9a22927.tar.bz2 podman-258ccfc3c9f896393161e66c86ad2b11a9a22927.zip |
System tests: add podman run --tz
New tests for podman run --tz=EXPLICIT and =local. Requires
updating our testimage by adding a fixed reference timestamp
to a known file path.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/build-testimage')
-rwxr-xr-x | test/system/build-testimage | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/build-testimage b/test/system/build-testimage index ef14d3afd..53ade57f0 100755 --- a/test/system/build-testimage +++ b/test/system/build-testimage @@ -35,6 +35,12 @@ cd $tmpdir # 'image mount' test will confirm that this file exists and has our YMD tag echo $YMD >testimage-id +# ...but set the timestamp on the file itself to a constant well-known +# value, for use by the 'run --tz' test. Date value chosen for nerdiness +# and because it's in the past. (Much as I'd love FFFFFFFF, we can't +# use any future date because of unpredictable leap second adjustments). +touch --date=@1600000000 testimage-id + # 'pod' test will use this for --infra-command cat >pause <<EOF #!/bin/sh @@ -49,6 +55,7 @@ EOF chmod 755 pause # alpine because it's small and light and reliable +# - check for updates @ https://hub.docker.com/_/alpine # busybox-extras provides httpd needed in 500-networking.bats cat >Containerfile <<EOF FROM docker.io/library/alpine:3.12.0 |