commit | 2bd804a5e9f770333a51a44ce4627c8136277af6 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Fri Mar 10 12:19:08 2017 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Wed Mar 22 11:20:08 2017 +0900 |
tree | 120a8bcf0a9a7ad9d781daf42f25f90ac9c453af | |
parent | 35fb85042e214e050e7798f6194a4746a9cd9bdd [diff] |
Update test code to match new iptables behaviour. iptables is changing the locking code from binding to an abstract UNIX socket to calling flock() on a real file. Update test code that acquires the iptables lock. Also, make said code more robust by retrying up to 10 times if the lock is held. This should make the test less flaky. Bug: 36108349 Test: IptablesRestoreControllerTest passes with new iptables Change-Id: I1d1d454d78382e76d178c4ef43f2c40a46f81f62