mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
fix tests on windows
This commit is contained in:
parent
27485a4cb1
commit
e8db3dd37f
6 changed files with 66 additions and 14 deletions
|
@ -1,6 +1,21 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
if uname | grep -iE '^(msys|mingw)'; then
|
||||
pids=()
|
||||
|
||||
python -m unittest discover -s tests >/dev/null &
|
||||
pids+=($!)
|
||||
|
||||
python scripts/test/smoketest.py &
|
||||
pids+=($!)
|
||||
|
||||
for pid in ${pids[@]}; do
|
||||
wait $pid
|
||||
done
|
||||
exit $?
|
||||
fi
|
||||
|
||||
# osx support
|
||||
gtar=$(command -v gtar || command -v gnutar) || true
|
||||
[ ! -z "$gtar" ] && command -v gfind >/dev/null && {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue