From 6efd0ec9747119124d9d59f5b6daff65091d7e63 Mon Sep 17 00:00:00 2001 From: Gary Shen Date: Mon, 23 Oct 2023 22:27:56 +0800 Subject: [PATCH] Update copyright year Check exit_code not zero Signed-off-by: Gary Shen --- nds/PysparkBenchReport.py | 2 +- nds/nds_maintenance.py | 2 +- nds/nds_power.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nds/PysparkBenchReport.py b/nds/PysparkBenchReport.py index cc0508b..154e3e5 100644 --- a/nds/PysparkBenchReport.py +++ b/nds/PysparkBenchReport.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # -# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/nds/nds_maintenance.py b/nds/nds_maintenance.py index f970cc9..aaf3e51 100644 --- a/nds/nds_maintenance.py +++ b/nds/nds_maintenance.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # -# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/nds/nds_power.py b/nds/nds_power.py index df23b70..bf716cb 100644 --- a/nds/nds_power.py +++ b/nds/nds_power.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # -# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -316,7 +316,7 @@ def run_query_stream(input_prefix, print("====== Queries with failure ======") print("{} status: {}".format(q.summary['query'], q.summary['queryStatus'])) exit_code = 1 - if exit_code == 1: + if not exit_code: print("Above queries failed or completed with failed tasks. Please check the logs for the detailed reason.") sys.exit(exit_code)