summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>2019-04-04 16:48:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-25 15:01:21 +0100
commitadd04306cdc7416ef59ed703a9ba620ee74eb474 (patch)
treea8c04b5c82efcc03e7171f3df1641fc132c2c283
parentb351f59c28b93ab287f3b1448c0bcfc22a99d461 (diff)
downloadpoky-add04306cdc7416ef59ed703a9ba620ee74eb474.tar.gz
resulttool/manualexecution: Fixed step sorted by integer
Currently the manual execution display step by sorting the step as string, where steps were not being sorted correctly when there are more than 9 steps. Fixed the step sorting by sorting step as integer. (From OE-Core rev: 1e5fba51f022a9320e72b6df753a02bfc1732af8) Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/lib/resulttool/manualexecution.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/resulttool/manualexecution.py b/scripts/lib/resulttool/manualexecution.py
index 07835407d5..9a29b0b273 100755
--- a/scripts/lib/resulttool/manualexecution.py
+++ b/scripts/lib/resulttool/manualexecution.py
@@ -85,7 +85,7 @@ class ManualTestRunner(object):
85 print('------------------------------------------------------------------------') 85 print('------------------------------------------------------------------------')
86 print('You have total ' + str(total_steps) + ' test steps to be executed.') 86 print('You have total ' + str(total_steps) + ' test steps to be executed.')
87 print('------------------------------------------------------------------------\n') 87 print('------------------------------------------------------------------------\n')
88 for step in sorted((self.jdata[test_id]['test']['execution']).keys()): 88 for step, _ in sorted(self.jdata[test_id]['test']['execution'].items(), key=lambda x: int(x[0])):
89 print('Step %s: ' % step + self.jdata[test_id]['test']['execution']['%s' % step]['action']) 89 print('Step %s: ' % step + self.jdata[test_id]['test']['execution']['%s' % step]['action'])
90 expected_output = self.jdata[test_id]['test']['execution']['%s' % step]['expected_results'] 90 expected_output = self.jdata[test_id]['test']['execution']['%s' % step]['expected_results']
91 if expected_output: 91 if expected_output: