From a56fab20cf80b852f2cfd8a4ad948738121f98a0 Mon Sep 17 00:00:00 2001 From: krrrr38 Date: Sun, 18 Dec 2022 07:45:59 +0900 Subject: [PATCH] refactor: add contest command into testing-image for refactoring e2e conftest ensure logic to upgrade conftest upgrading --- testing/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/Dockerfile b/testing/Dockerfile index 9ad58a46f5..ec4ba11e4c 100644 --- a/testing/Dockerfile +++ b/testing/Dockerfile @@ -22,7 +22,9 @@ RUN case $(uname -m) in x86_64|amd64) ARCH="x86_64" ;; aarch64|arm64|armv7l) ARC sed -n "/conftest_${CONFTEST_VERSION}_Linux_${ARCH}.tar.gz/p" checksums.txt | sha256sum -c && \ mkdir -p /usr/local/bin/cft/versions/${CONFTEST_VERSION} && \ tar -C /usr/local/bin/cft/versions/${CONFTEST_VERSION} -xzf conftest_${CONFTEST_VERSION}_Linux_${ARCH}.tar.gz && \ + # After migrating e2e test which use contest command instead of contest$version, you can remove contest$version command. ln -s /usr/local/bin/cft/versions/${CONFTEST_VERSION}/conftest /usr/local/bin/conftest${CONFTEST_VERSION} && \ + ln -s /usr/local/bin/cft/versions/${CONFTEST_VERSION}/conftest /usr/local/bin/conftest && \ rm conftest_${CONFTEST_VERSION}_Linux_${ARCH}.tar.gz && \ rm checksums.txt