Deflake the meta_arg_test by setting a specific timestamp in touch. (#498)

This works around mtime-precision issues that cause us to differ from docker-built images
when the touch command executes too quickly to modify the mtime.

Also one fix in the .travis.yml beacuse something appears to have changed in their default
go installation.
This commit is contained in:
dlorenc
2018-12-20 12:33:12 -06:00
committed by GitHub
parent 8ced0930f4
commit ec1f78a5c4
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ language: go
os: linux
go:
- 1.10.x
- "1.10"
go_import_path: github.com/GoogleContainerTools/kaniko
script:
@@ -14,4 +14,5 @@ FROM ${REGISTRY}/${REPO}/debian9
COPY --from=stage1 /hello /tmp
# /tmp/hey should not get created without the ARG statement
RUN touch /tmp/${WORD2}
# Use -d 0 to force a time change because of stat resolution
RUN touch -d 0 /tmp/${WORD2}