1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test
David Steele d452e9cc38
Use zero-based indexes when referring to option indexes.
There were a number of places in the code where "hostId" was used, but hostId is just the option group index + 1 so this led to a lot of +1 and -1 to convert the id to an index and vice versa.

Instead just use the zero based index wherever possible. This is pretty much everywhere except when the host-id option is read or set, or where a message is being formatted for the user.

Also fix a bug in protocolRemoteParam() where remotes spawned from the main process could get process ids that were not 0. Only the locals should spawn remotes with process id > 0. This seems to have been harmless since the process id is only a label, but it could be confusing when debugging.
2020-10-26 10:25:16 -04:00
..
certificate New test containers with static test certificates. 2018-11-21 18:13:37 -05:00
code-count v2.30: PostgreSQL 13 Support 2020-10-05 11:51:45 -04:00
data Automate generation of WAL and pg_control test files. 2017-11-18 20:02:54 -05:00
expect Reset additional options in real/all integration test. 2020-10-19 17:06:52 -04:00
lib/pgBackRestTest Reset additional options in real/all integration test. 2020-10-19 17:06:52 -04:00
src Use zero-based indexes when referring to option indexes. 2020-10-26 10:25:16 -04:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
container.yaml Update test containers for PostgreSQL 13. 2020-09-24 11:19:51 -04:00
define.yaml Add internal verify command. 2020-09-22 11:57:38 -04:00
test.pl Add --no-coverage-report to test.pl to disable report generation. 2020-06-17 15:07:30 -04:00
travis.pl Add --no-coverage-report to test.pl to disable report generation. 2020-06-17 15:07:30 -04:00
Vagrantfile Add jq to tools installed by Vagrantfile. 2020-05-14 18:45:23 -04:00