jenkins: some reliability fixes to the test scripts

parent daa96352
Pipeline #13810045 passed with stage
in 35 minutes 15 seconds