[v9_14] Simplify trailing period handling in system tests

(cherry picked from commit da2c1b74)

Merge request reports