Created
July 26, 2016 16:42
-
-
Save rj76/0be4f49ff5770616bc9e6040c19e1dcb to your computer and use it in GitHub Desktop.
play wav on tests failure/success
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
success="/home/richard/Downloads/computer_systems.wav" | |
fail="/home/richard/Downloads/go_back_to_work.wav" | |
./manage.py test --settings settings.test_settings | |
if [ $? -ne 0 ]; then | |
vlc --play-and-exit --quiet --intf dummy vcd:// $fail | |
else | |
vlc --play-and-exit --quiet --intf dummy vcd:// $success | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment