Files
musrfit/tests/musrview_check
suter_a 05d2c573c4
Build and Deploy Documentation / build-and-deploy (push) Successful in 24s
musrview_check: fix flaky/failing musrview tests on RHEL9
Three independent issues made all 72 musrview-* ctest targets fail on a
RHEL9 box while passing elsewhere:

- Pixel-diff tolerance (1%) was tighter than needed; bump to 3%. Real
  diffs against the committed reference PNGs measure ~0.08%.
- find_package(Python3) picks the highest-versioned interpreter on the
  system, which on this machine is a bare /usr/bin/python3.14 without
  Pillow/numpy installed, while the distro's python3 (3.9) has both.
  Probe the interpreter CMake found and fall back to PATH's "python3"
  if it lacks the required modules.
- musrview reliably writes and closes the PNG before exiting, but under
  ctest (not reproducible via a plain shell loop) the new directory
  entry could take several seconds to become visible to the checking
  script's glob(). Poll for up to ~15s instead of failing on the first
  empty glob.
2026-07-27 20:42:13 +02:00
..