1 |
commit: d7875a310c1b61eb2a139a567b422eeccedaea9a |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 15 06:27:12 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 15 06:28:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7875a31 |
7 |
|
8 |
dev-python/txAMQP: fix timeout issue in testing |
9 |
|
10 |
My previous variant, of using 10 second timeout, wasn't long enough |
11 |
for tinderbox. Changed to use a while loop checking when |
12 |
localhost:5672 port is openned, and only then advance the testing. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/818226 |
15 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
16 |
|
17 |
dev-python/txAMQP/txAMQP-0.8.2.ebuild | 5 ++++- |
18 |
1 file changed, 4 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/dev-python/txAMQP/txAMQP-0.8.2.ebuild b/dev-python/txAMQP/txAMQP-0.8.2.ebuild |
21 |
index ee0ea7c19f3..b5cd02193b9 100644 |
22 |
--- a/dev-python/txAMQP/txAMQP-0.8.2.ebuild |
23 |
+++ b/dev-python/txAMQP/txAMQP-0.8.2.ebuild |
24 |
@@ -57,7 +57,10 @@ src_test() { |
25 |
/usr/libexec/rabbitmq/rabbitmq-server -p 5672:5672 & |
26 |
|
27 |
einfo "Waiting for rabbitmq to fully load" |
28 |
- sleep 10 # Maybe need to increase timeout |
29 |
+ while ! { echo >/dev/tcp/localhost/5672 ; } &> /dev/null; do |
30 |
+ sleep 1 |
31 |
+ done |
32 |
+ einfo "rabbitmq is ready" |
33 |
|
34 |
distutils-r1_src_test |