mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
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: 192c255d9f597b3526a5b94fcf3eedc4527189ed) Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6401dfb6fa
commit
f1e470d8fa
@@ -85,7 +85,7 @@ class ManualTestRunner(object):
|
||||
print('------------------------------------------------------------------------')
|
||||
print('You have total ' + str(total_steps) + ' test steps to be executed.')
|
||||
print('------------------------------------------------------------------------\n')
|
||||
for step in sorted((self.jdata[test_id]['test']['execution']).keys()):
|
||||
for step, _ in sorted(self.jdata[test_id]['test']['execution'].items(), key=lambda x: int(x[0])):
|
||||
print('Step %s: ' % step + self.jdata[test_id]['test']['execution']['%s' % step]['action'])
|
||||
expected_output = self.jdata[test_id]['test']['execution']['%s' % step]['expected_results']
|
||||
if expected_output:
|
||||
|
||||
Reference in New Issue
Block a user