Project

General

Profile

Actions

action #41801

closed

25-serverstartup.t test fails with recent Mojolicious

Added by AdamWill over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Category:
Feature requests
Target version:
-
Start date:
2018-09-29
Due date:
% Done:

0%

Estimated time:

Description

I just ran an openQA package build for Fedora Rawhide, and it failed, because the 25-serverstartup.t test failed. On closer examination it looks like debug messages are not being logged:

#   Failed test 'right debug message'
#   at ./t/25-serverstartup.t line 57.
#                   '[2018-09-29T00:51:03.0490 UTC] [error] Just works
# [2018-09-29T00:51:03.0490 UTC] [fatal] Fatal error
# [2018-09-29T00:51:03.0490 UTC] [info] Works too
# '
#     doesn't match '(?^:\[.*\] \[debug\] It works)'
# Looks like you failed 1 test of 4.
#   Failed test 'Setup logging to file'

The test expects four messages to be logged, one each at levels 'debug', 'info', 'error' and 'fatal'. In fact the 'debug' message does not show up.

The test does this to try and set the log level to 'debug':

local $ENV{MOJO_LOG_LEVEL} = 'debug';

I suspect this is, for some reason, not working after this upstream commit:

https://github.com/mojolicious/mojo/commit/7b1307c29607661bb2afac03706c502bfaf97dfb

It's late on a Friday, so I'm not gonna dig any further right now, but I figured I should report it. The Fedora package is some way behind openQA git master, but this particular test hasn't been changed since 2017, so that won't matter.


Related issues 1 (0 open1 closed)

Is duplicate of openQA Project - action #41486: Port openQA to Mojolicious 8.0Resolvedmkittler2018-09-24

Actions
Actions

Also available in: Atom PDF