File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
examples/server/tests/features Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,12 @@ def before_scenario(context, scenario):
17
17
18
18
def after_scenario (context , scenario ):
19
19
if scenario .status == "failed" :
20
- print (f"\x1b [33;101mSCENARIO FAILED: { scenario .name } server logs:\x1b [0m\n \n " )
21
- if os .path .isfile ('llama.log' ):
22
- with closing (open ('llama.log' , 'r' )) as f :
23
- for line in f :
24
- print (line )
20
+ if 'GITHUB_ACTIONS' in os .environ :
21
+ print (f"\x1b [33;101mSCENARIO FAILED: { scenario .name } server logs:\x1b [0m\n \n " )
22
+ if os .path .isfile ('llama.log' ):
23
+ with closing (open ('llama.log' , 'r' )) as f :
24
+ for line in f :
25
+ print (line )
25
26
26
27
if not pid_exists (context .server_process .pid ):
27
28
assert False , f"Server not running pid={ context .server_process .pid } ..."
You can’t perform that action at this time.
0 commit comments