Project

General

Profile

action #178252

Updated by livdywan 2 months ago

Is it possible to set any step to skipped status during test execution? (without using EXCLUDE_MODULES) 

 I wrote this function: 

 ``` 
 sub `sub record_skip_test { 
     my ($message) = shift // ''; 
     $autotest::current_test->result('skip'); 
     $autotest::current_test->record_resultfile('SKIP TEST', $message, result => 'unk'); 
 } 
 ``` }` 

 and call it in tests where I need to skip step: 

     record_skip_test('skip 
 `record_skip_test('skip test because ...'); ...');` 

 As a result, I get the following (screenshot skip_test.png) 

 But I'm not sure what is the right way

Back