[v9_16] Replace seq command with POSIX-compliant shell code
The seq
command is not defined in the POSIX standard and is missing on
OpenBSD. Given that the system test code is meant to be POSIX-compliant
replace it with a shell construct.
(cherry picked from commit a08487ec)
Closes #2694 (closed)