3 Commits

Author SHA1 Message Date
Yuriy Taraday
d3e2986fa1 Wrap exceptions that occur while running external process
This should help identify problem with timeouts.

Change-Id: I663b1ca3fe9a74ed0869fefdb16583951e3db6a5
2014-02-13 13:46:44 +04:00
Yuriy Taraday
9a7f8ad613 Make Gerrit port and dir selection deterministic
For every test number N run in process with PID, we take address
127.N.PID/256.PID%256 and let Gerrit listen on its default ports (29418
for SSH and 8080 for HTTP) on that address. We also name site dir with
the same address with "site-" prefix.

Thanks to Clark Boylan for this great idea.

Change-Id: I95b010e7a5b96c981614d5d3401efe861534806f
2014-02-13 11:46:13 +04:00
Dina Belova
e99aa8b16d Implement integration tests.
Provide intergation testing for the git-review utility. Requires
Gerrit war file (like 2.6.1-gerrit.war) in the .gerrit directory in
the git-review project (like git-review/.gerrit/2.6.1-gerrit.war).

Tests start local Gerrit and create test user and project there to
be used.

Closes-Bug: 1048724
Change-Id: I3242479dcbcf230085178004540992680f3f8e30
2013-08-15 21:08:08 +00:00