refactoring test script to use ps instead of lsof when checking for git daemon
This commit is contained in:
+2
-3
@@ -397,9 +397,8 @@ function fail() {
|
|||||||
|
|
||||||
function check_git_daemon {
|
function check_git_daemon {
|
||||||
port=$1
|
port=$1
|
||||||
|
for i in {1..10}; do
|
||||||
for _ in {1..10}; do
|
process=$(ps aux | grep "git daemon" | grep $port)
|
||||||
process=$(lsof -i ":$port" | grep 'git-daemon')
|
|
||||||
if [ -z "$process" ]; then
|
if [ -z "$process" ]; then
|
||||||
echo "Waiting for git daemon to start on port $port..."
|
echo "Waiting for git daemon to start on port $port..."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user