From b95d1bc6d5914962fbc8906f4dcfe87e843bd7b6 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 5 Mar 2023 19:00:25 +0100 Subject: [PATCH] ci/cd - add missing log() and fix TYPE for linux tests --- .github/workflows/staging.yml | 2 +- tests/logger.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests/logger.py diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index c6ac568f5..64c36dd1e 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -157,7 +157,7 @@ jobs: needs: [code-security, build-ubuntu, build-debian, build-centos, build-fedora, build-rhel] uses: ./.github/workflows/staging-create-infra.yml with: - TYPE: k8s + TYPE: linux secrets: CICD_SECRETS: ${{ secrets.CICD_SECRETS }} diff --git a/tests/logger.py b/tests/logger.py new file mode 100644 index 000000000..352a65261 --- /dev/null +++ b/tests/logger.py @@ -0,0 +1,5 @@ +from datetime import datetime + +def log(what, level, msg) : + when = datetime.now().strftime("[%Y-%m-%d %H:%M:%S]") + print(f"{when} - {what} - {level} - {msg}", flush=True)