From 3345a6d316bd50f005d22bfd231a4f9c0a5b7d62 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 13 Mar 2017 13:47:34 -0700 Subject: [PATCH] Use string comparison to compare UUID values Was using the '-ne' integer comparison operator to compare UUID values. This caused error messages like: /opt/stack/new/devstack/lib/tempest: line 226: [[: dfae26ac-1780-4677-902d: value too great for base (error token is "902d") Change it to use '!=' string comparison operator Change-Id: Ib7c9197dd0fe58addf33b4f82beea6de64f6b10b --- lib/tempest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tempest b/lib/tempest index a9461d42ff..cf7eb6f722 100644 --- a/lib/tempest +++ b/lib/tempest @@ -223,7 +223,7 @@ function configure_tempest { # Ensure ``flavor_ref`` and ``flavor_ref_alt`` have different values. # Some resize instance in tempest tests depends on this. for f in ${flavors[@]:1}; do - if [[ $f -ne $flavor_ref ]]; then + if [[ "$f" != "$flavor_ref" ]]; then flavor_ref_alt=$f break fi