smart_sort is not sorting kernels correctly
Not much point in doing a custom kernel sort if we do another
unconditional sort at the end of the function. Return early.
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1599 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/frontend.py b/tko/frontend.py
index 2ccb601..00e7fed 100755
--- a/tko/frontend.py
+++ b/tko/frontend.py
@@ -114,6 +114,7 @@
def kernel_encode(kernel):
return kernel_versions.version_encode(kernel)
list.sort(key = kernel_encode, reverse = True)
+ return list
## old records may contain time=None
## make None comparable with timestamp datetime or date
elif field == 'test_finished_time':