From fc8b109ef0598534f1f137ee3d259cef396bfa03 Mon Sep 17 00:00:00 2001 From: albailey Date: Tue, 4 Aug 2020 08:45:26 -0500 Subject: [PATCH] Fix a random tox linters failure in bashate There was a file that was missing a newline which would cause bashate to fail. However the bashate command was being run as a list of inputs rather than as individual files, so that error was being ignored unless that bad file was the last file processed. This submission fixes the file, and ensures that tox linters job will fail is any file has an error, regardless of what is processed afterwards. Change-Id: I7587b7017b6855aad63dfaeaea5ecca0bcfc21ea Closes-Bug: 1890287 Signed-off-by: albailey --- sysinv/sysinv/sysinv/scripts/validate-platform-backup.sh | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysinv/sysinv/sysinv/scripts/validate-platform-backup.sh b/sysinv/sysinv/sysinv/scripts/validate-platform-backup.sh index 2e00b83f04..53d9989b6c 100644 --- a/sysinv/sysinv/sysinv/scripts/validate-platform-backup.sh +++ b/sysinv/sysinv/sysinv/scripts/validate-platform-backup.sh @@ -49,4 +49,4 @@ for part_number in "${part_numbers[@]}"; do fi done log "Valid platform-backup partition not found" -exit 1 \ No newline at end of file +exit 1 diff --git a/tox.ini b/tox.ini index 85966a0477..3227174027 100644 --- a/tox.ini +++ b/tox.ini @@ -24,7 +24,7 @@ commands = -not -name \*~ \ -not -name \*.md \ -name \*.sh \ - -print0 | xargs -0 bashate -v -e E* \ + -print0 | xargs -r -n 1 -0 bashate -v -e E* \ -i E006,E010" bash -c "find {toxinidir} \