From c694367bc598670d2d4fc0fe91e0b69aafc3a5f9 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Tue, 21 Dec 2010 17:39:42 +0100
Subject: [PATCH] =?UTF-8?q?Fix=20QA=20for=20=E2=80=9Clist-fields=E2=80=9D?=
 =?UTF-8?q?=20commands?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The list of fields is not only sorted, but sorted in a nice way.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 qa/qa_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qa/qa_utils.py b/qa/qa_utils.py
index 6fa949a98..8c7eec345 100644
--- a/qa/qa_utils.py
+++ b/qa/qa_utils.py
@@ -402,7 +402,7 @@ def GenericQueryFieldsTest(cmd, fields):
   output = GetCommandOutput(master["primary"],
                             utils.ShellQuoteArgs(realcmd)).splitlines()
   AssertEqual([line.split("|", 1)[0] for line in output],
-              sorted(fields))
+              utils.NiceSort(fields))
 
   # Check exit code for listing unknown field
   AssertEqual(AssertCommand([cmd, "list-fields", "field/does/not/exist"],
-- 
GitLab