1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-10-30 23:37:45 +02:00

Allow tests that use ports to run in parallel.

Set the test index in the C unit test code so it can assign port numbers that won't conflict between tests.
This commit is contained in:
David Steele
2019-10-10 16:13:43 -04:00
parent 13fcbb24e9
commit 6db4e59a66
10 changed files with 76 additions and 34 deletions

View File

@@ -389,6 +389,7 @@ sub run
$strTestC =~ s/\{\[C\_TEST\_PROJECT\_EXE\]\}/$strProjectExePath/g;
$strTestC =~ s/\{\[C\_TEST\_PATH\]\}/$strTestPathC/g;
$strTestC =~ s/\{\[C\_TEST\_DATA_PATH\]\}/$self->{strDataPath}/g;
$strTestC =~ s/\{\[C\_TEST\_IDX\]\}/$self->{iVmIdx}/g;
$strTestC =~ s/\{\[C\_TEST\_REPO_PATH\]\}/$self->{strBackRestBase}/g;
$strTestC =~ s/\{\[C\_TEST\_SCALE\]\}/$self->{iScale}/g;