export TESTTMP=${PWD}
killall josh-proxy &> /dev/null
killall josh-test-server &> /dev/null
git init --bare ${TESTTMP}/remote/real_repo.git/ &> /dev/null
git config -f ${TESTTMP}/remote/real_repo.git/config http.receivepack true
git init --bare ${TESTTMP}/remote/real_repo2.git/ &> /dev/null
git config -f ${TESTTMP}/remote/real_repo2.git/config http.receivepack true
export RUST_LOG=debug

export TESTPASS=$(openssl rand -hex 5)
export TESTUSER=$(openssl rand -hex 5)

PATH=${TESTDIR}/../target/debug/:${PATH}

josh-test-server\
    --port=8001\
    --local=${TESTTMP}/remote/\
    --username=${TESTUSER}\
    --password=${TESTPASS}\
    &> ${TESTTMP}/josh-test-server.out&
echo $! > ${TESTTMP}/server_pid

josh-proxy\
    --port=8002\
    --local=${TESTTMP}/remote/scratch/\
    --remote=http://localhost:8001\
    &> ${TESTTMP}/josh-proxy.out&
echo $! > ${TESTTMP}/proxy_pid

export TESTTMP=${PWD}
killall josh-proxy &> /dev/null
killall josh-test-server &> /dev/null
git init --bare ${TESTTMP}/remote/real_repo.git/ &> /dev/null
git config -f ${TESTTMP}/remote/real_repo.git/config http.receivepack true
git init --bare ${TESTTMP}/remote/real_repo2.git/ &> /dev/null
git config -f ${TESTTMP}/remote/real_repo2.git/config http.receivepack true
export RUST_LOG=debug

export TESTPASS=$(openssl rand -hex 5)
export TESTUSER=$(openssl rand -hex 5)

PATH=${TESTDIR}/../target/debug/:${PATH}

josh-test-server\
    --port=8001\
    --local=${TESTTMP}/remote/\
    --username=${TESTUSER}\
    --password=${TESTPASS}\
    &> ${TESTTMP}/josh-test-server.out&
echo $! > ${TESTTMP}/server_pid

josh-proxy\
    --port=8002\
    --local=${TESTTMP}/remote/scratch/\
    --remote=http://localhost:8001\
    &> ${TESTTMP}/josh-proxy.out&
echo $! > ${TESTTMP}/proxy_pid

sleep 1

Add short sleep after test setup
Add short sleep after test setup
