diff options
author | defanor <defanor@uberspace.net> | 2017-05-05 21:02:32 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-05-05 21:02:32 +0300 |
commit | 46e91feda0374338e688902a7e7cd0e49f4138c9 (patch) | |
tree | f91721c91f5855d1b7f32e24d4fb0b18c36e5eb3 /tests/wait-for-initialization.sed | |
parent | ca1bb0b789e954643a1f025698c8b4a1bce1450d (diff) |
Improve the authenticate.sh test
Now it's more or less reliable, and faster.
Diffstat (limited to 'tests/wait-for-initialization.sed')
-rwxr-xr-x | tests/wait-for-initialization.sed | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/wait-for-initialization.sed b/tests/wait-for-initialization.sed new file mode 100755 index 0000000..9f0d808 --- /dev/null +++ b/tests/wait-for-initialization.sed @@ -0,0 +1,13 @@ +#!/bin/sed -rf + +s/^[^:]+: Initializing$// +T err +n +s/^[^:]+: Attempting to bind: [^ ,]+, port [0-9]+$// +T err +n +s/^[^:]+: Listening on [^ ,]+, port ([0-9]+)$/\1/ +T err +q 0 +: err +Q 1 |