#! /bin/bash

# Kill any stray processes that left over from a previous test run
# that are holding onto one of the ports we want to use.
for port in $(seq $PORT_BASE $((PORT_BASE+PORT_COUNT-1))); do
    lsof -i TCP:$port | grep LISTEN | awk '{print $2}' | xargs kill -9
done

#! /bin/bash

# Kill any stray processes that left over from a previous test run
# that are holding onto one of the ports we want to use.
: ${PORT_COUNT=20}
for port in $(seq $PORT_BASE $((PORT_BASE+PORT_COUNT-1))); do
    lsof -i TCP:$port | grep LISTEN | awk '{print $2}' | xargs kill -9
done

Set a default value for the PORT_COUNT to match the other scripts
Set a default value for the PORT_COUNT to match the other scripts
