]> code.ossystems Code Review - openembedded-core.git/commitdiff
resulttool/manualexecution: Enable display full steps without press enter
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>
Thu, 4 Apr 2019 08:48:36 +0000 (16:48 +0800)
committerArmin Kuster <akuster808@gmail.com>
Sat, 6 Apr 2019 10:47:49 +0000 (16:17 +0530)
Current manualexecution required pressing enter button to show each step
information, where this was wasting execution time. Enable display
full steps without needing to any press enter button.

Signed-off-by: Mazliana <mazliana.mohamad@intel.com>
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>
scripts/lib/resulttool/manualexecution.py

index 8ce79038928342f6d0bd333f838b23f0e2218859..07835407d572953eebdcc0bbaced5e8ca7f69b56 100755 (executable)
@@ -87,8 +87,9 @@ class ManualTestRunner(object):
         print('------------------------------------------------------------------------\n')
         for step in sorted((self.jdata[test_id]['test']['execution']).keys()):
             print('Step %s: ' % step + self.jdata[test_id]['test']['execution']['%s' % step]['action'])
-            print('Expected output: ' + self.jdata[test_id]['test']['execution']['%s' % step]['expected_results'])
-            done = input('\nPlease press ENTER when you are done to proceed to next step.\n')
+            expected_output = self.jdata[test_id]['test']['execution']['%s' % step]['expected_results']
+            if expected_output:
+                print('Expected output: ' + expected_output)
         while True:
             done = input('\nPlease provide test results: (P)assed/(F)ailed/(B)locked/(S)kipped? \n')
             done = done.lower()