From dddf9effa519fd4eeed37f28b478f50c8a5a6e43 Mon Sep 17 00:00:00 2001 From: "michal.gubricky" Date: Mon, 11 Nov 2024 13:14:48 +0100 Subject: [PATCH] Fix gen_sonobuoy_result_file Signed-off-by: michal.gubricky --- .../k8s-default-storage-class-check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py b/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py index f8bd6c258..72507759b 100644 --- a/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py +++ b/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py @@ -25,6 +25,7 @@ import time import json import logging +import os from kubernetes import client from helper import gen_sonobuoy_result_file @@ -259,7 +260,7 @@ def main(argv): if return_code == 0: return_message = "all tests passed" - gen_sonobuoy_result_file(return_code, return_message, __file__) + gen_sonobuoy_result_file(return_code, return_message, os.path.basename(__file__)) return return_code