mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-08-12 09:19:15 +02:00
fix: bad file descriptor error in windows, fix pytest errors
This commit is contained in:
@ -24,7 +24,7 @@ ping)
|
||||
;;
|
||||
iperf3)
|
||||
port=5001
|
||||
with_set_x exec iperf3 --client "$ip" --port=$port --connect-timeout=$connect_timeout_sec "$@"
|
||||
with_set_x exec iperf3 --client "$ip" --port=$port --connect-timeout=$((connect_timeout_sec * 1000)) "$@"
|
||||
;;
|
||||
curl)
|
||||
port=8080
|
||||
@ -32,6 +32,6 @@ curl)
|
||||
;;
|
||||
ab)
|
||||
port=8080
|
||||
with_set_x exec ab -n 100 -c 20 -s $connect_timeout_sec "$@" "http://$ip:$port/"
|
||||
with_set_x exec ab -n 100 -c 20 -s $connect_timeout_sec "$@" "http://$ip:$port/"
|
||||
;;
|
||||
esac
|
||||
|
9
hack/run-checks
Executable file
9
hack/run-checks
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
export PYTHONPATH=.
|
||||
|
||||
set -x
|
||||
python -m pytest .
|
||||
python -m flake8 .
|
Reference in New Issue
Block a user