From d0da393ac6f43ee5a440b9459a3d73c6b6fc0ac4 Mon Sep 17 00:00:00 2001 From: Tom Barron Date: Mon, 16 Jan 2017 14:02:45 -0500 Subject: [PATCH] Suppress some bashate warnings When running ``tox`` for manila image elements bashate warnings are emitted for lines that are too long. Suppress these since we have no intention of enforcing that requirement. Also add a shebang to the top of a shell script, which does no harm (even though it is not needed when sourcing the script to set env files) in order to make another warning go away. TrivialFix Change-Id: I7f2f2723f99d64a0e28b4d0fe43b79e7201f6121 --- elements/manila-ssh/environment.d/50-manila-user | 1 + tools/run_bashate.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/elements/manila-ssh/environment.d/50-manila-user b/elements/manila-ssh/environment.d/50-manila-user index 3c5813f..f6bb722 100755 --- a/elements/manila-ssh/environment.d/50-manila-user +++ b/elements/manila-ssh/environment.d/50-manila-user @@ -1,3 +1,4 @@ +#!/bin/bash export DIB_MANILA_USER_USERNAME=${DIB_MANILA_USER_USERNAME:-manila} export DIB_MANILA_USER_AUTHORIZED_KEYS=${DIB_MANILA_USER_AUTHORIZED_KEYS:-} export DIB_MANILA_USER_PASSWORD=${DIB_MANILA_USER_PASSWORD:-} diff --git a/tools/run_bashate.sh b/tools/run_bashate.sh index 93ab45b..d243b54 100755 --- a/tools/run_bashate.sh +++ b/tools/run_bashate.sh @@ -4,4 +4,4 @@ find ./ -not -wholename \*.tox/\* -and \ \( -name \*.sh -or -wholename \*.d/\* -and \ -not -name \*.md -and -not -name \*.rst -and \ -not -name \*.py -and -not -name \*.conf \) \ - -print0 | xargs -0 bashate -v + -print0 | xargs -0 bashate -v -i E006