From f19f960672110094e4b3a6fe9d81a2b599936dc8 Mon Sep 17 00:00:00 2001 From: thesayyn Date: Thu, 30 Nov 2023 15:01:19 -0800 Subject: [PATCH] debug --- distroless/tests/asserts.bzl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/distroless/tests/asserts.bzl b/distroless/tests/asserts.bzl index 2b019b4..c9d14ff 100644 --- a/distroless/tests/asserts.bzl +++ b/distroless/tests/asserts.bzl @@ -42,9 +42,18 @@ def assert_jks_listing(name, actual, expected): ], outs = ["_{}.listing".format(name)], cmd = """ +#!/usr/bin/env bash +set -o pipefail -o errexit -o nounset + BINS=($(locations @rules_java//toolchains:current_java_runtime)) KEYTOOL=$$(dirname $${BINS[1]})/keytool -TZ="UTC" $$KEYTOOL -list -keystore $(location %s) -storepass changeit > $@ +echo $${TZ:-} +echo $${LANG:-} +env +export TZ="UTC" +export LANG="en_CA" +env +$$KEYTOOL -list -keystore $(location %s) -storepass changeit > $@ """ % actual, )