12 lines
252 B
Bash
Executable file
12 lines
252 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Start test if one of the files was modified
|
|
|
|
while true; do
|
|
NOTIFY=$(inotifywait -rq -e modify . | grep '\.py')
|
|
if [ _$? == _0 ]; then
|
|
echo -e "\n\n\n"
|
|
pytest --capture=no #test
|
|
echo ">>>>>>>> Test finished at: $(date)"
|
|
fi
|
|
done
|