https://bugs.winehq.org/show_bug.cgi?id=47997
Bug ID: 47997 Summary: Allow setting $WINEDEBUG Product: Wine-Testbot Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: unknown Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
To figure out why a test is failing in a TestBot Wine VM it would sometimes be useful to be able to set $WINEDEBUG.
The trouble with $WINEDEBUG is that it can result in very large logs (e.g. if set to +all or _relay). But then the tests can already generate large files by looping on a printf() so that's not really a new issue, it's just less likely to happen accidentally.
The way to deal with that would be to limit the size of the log and reports that the TestBot retrieves from the VMs.
Notes: * The TestBot already collects the whichever traces Wine puts out which would typically be the FIXME()s and ERR()s. They are at the end of the "full task log". * So a workaround is to patch Wine to convert the relevant traces to FIXME()s. That's not very practical if one does not initially know which ones are going to be needed which is why being able to set $WINEDEBUG would be better.