From 258ccfc3c9f896393161e66c86ad2b11a9a22927 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Tue, 29 Sep 2020 12:23:58 -0600 Subject: 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 --- test/system/build-testimage | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/system/build-testimage') 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 <Containerfile <