2020-12-17 01:01:27 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Start test if one of the files was modified
|
|
|
|
|
|
|
|
|
|
while true; do
|
|
|
|
|
NOTIFY=$(inotifywait -rq -e modify . | grep '\.py')
|
|
|
|
|
if [ _$? == _0 ]; then
|
2020-12-21 23:53:15 +00:00
|
|
|
echo -e "\n\n\n"
|
|
|
|
|
pytest --capture=no #test
|
2020-12-17 01:01:27 +01:00
|
|
|
echo ">>>>>>>> Test finished at: $(date)"
|
|
|
|
|
fi
|
|
|
|
|
done
|