quattor / ncm-ncd

Node Configuration Dispatcher Framework for Components
www.quattor.org
Other
4 stars 9 forks source link

Test for component results breaks with different Perl versions #131

Open jrha opened 2 years ago

jrha commented 2 years ago

The current test passes with Perl v5.26.3 on CentOS8, but not with v5.16.3 on CentOS7 or v5.10.1 on CentOS6.

This can also be seen in the nightlies: image

I have commented the checks out to release 21.12 in f3a05a80f4c8603e519f41baf318e6f5f84e8f16 but this is a poor fix.

For what it is worth, the logic appears to function correctly on EL7, so it looks to be just a problem with the tests.

jrha commented 2 years ago

Looking at this more closely, only a single test is failing, so it's not an ordering issue.

like($pri[-2]->[0], qr{^  ouch failed on .*? 2001 \(no message\)}, "failed ouch component");

This fails as @pre contains:

[
  [
    '2 components with error'
  ],
  [
    '  woohaa failed on Thu Nov 29 21:33:09 1973 with message woopsie'
  ],
  [
    ${\$VAR1->[1][0]}
  ]
]

When the code is run with the earlier Perl versions.