Discussion:
[Libstoragemgmt-devel] [PATCH] Fix runtests.sh env vars
Tony Asleson
2015-03-03 00:27:14 UTC
Permalink
If you have LSMCLI_PASSWORD set and you run the test it will fail
as the test runs with a URI without a user id set.

Signed-off-by: Tony Asleson <***@redhat.com>
---
test/runtests.sh | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/test/runtests.sh b/test/runtests.sh
index c151b93..541e194 100755
--- a/test/runtests.sh
+++ b/test/runtests.sh
@@ -70,6 +70,11 @@ good() {
# Add a signal handler to clean-up
trap "cleanup; exit 1" INT

+# Unset these as they can cause the test case to fail
+# specifically the password one, but remove both.
+unset LSMCLI_PASSWORD
+unset LSMCLI_URI
+
#Put us in a consistent spot
cd "$(dirname "$0")"
--
1.7.1
Gris Ge
2015-03-03 13:15:51 UTC
Permalink
Post by Tony Asleson
If you have LSMCLI_PASSWORD set and you run the test it will fail
as the test runs with a URI without a user id set.
---
Hi Tony,

Looks good to me.
Thanks for the patch.
Best regards.
--
Gris Ge
Loading...