dod38fr / config-model

Perl module to create configuration editor with semantic validation
58 stars 12 forks source link

t/model_tests.t fails (with older Hash::Merge?) #16

Closed eserte closed 6 years ago

eserte commented 6 years ago

t/model_tests.t fails on some of my smokers:

copy t/model_tests.d/backend-cds-examples/basic -> wr_root/test-basic/etc/hosts.cds failed:Datei oder Verzeichnis nicht gefunden at /opt/perl-5.22.4/lib/site_perl/5.22.4/Config/Model/Tester.pm line 105, <F> line 4.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 1.
t/model_tests.t ................... 
Dubious, test returned 2 (wstat 512, 0x200)

Statistical analysis suggests that this happens if older Hash::Merge (<0.299) is installed:

****************************************************************
Regression 'mod:Hash::Merge'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           0.0000          0.0000       9.59
[1='eq_0.299']       -0.0000          0.0000      -3.39
[2='eq_0.300']        1.0000          0.0000    111534200540639936.00

R^2= 1.000, N= 26, K= 3
****************************************************************
dod38fr commented 6 years ago

Hi.

The tests pass on my laptop with Hash::Merge 0.200. I'm suspecting a bug in Config::Model::Tester where the test directory are not always created. I'll release a new version soon.

Thanks for you report.

All the best