Southclaws / sampctl

The Swiss Army Knife of SA:MP - vital tools for any server owner or library maintainer.
GNU General Public License v3.0
239 stars 34 forks source link

y_testing mode broken due to line format change #508

Open ArtUshak opened 11 months ago

ArtUshak commented 11 months ago

In y_testing 5.x report line format has changed (YSI_Core/y_testing/y_testing_entry.inc#L1205) and now includes check count and handles singular and plural words dependent on count.

Therefore, current regexp for test report (runtime/run.go#L26) no longer matches y_testing report lines, and sampctl hangs on test run.

Regexp for both new and old format would look like:

\*\*\* Test(?:s|): (\d+),(?: Check(?:s|): \d+,|) Fail(?:s|): (\d+)
ADRFranklin commented 10 months ago

Thank you for that information, I will make sure to update it in the next release.