Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix integration tests #487

Merged
merged 2 commits into from Sep 30, 2016
Merged

Conversation

pain64
Copy link
Contributor

@pain64 pain64 commented Sep 16, 2016

use GNU timeout (7 sec) for handle phantomjs hangs, retry 10 times

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
for i in {1..10}
do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for i in {1...10}; do

do
timeout 7 phantomjs static/spec/phantom-runner.js
last=$?
if [[ "$last" -ne "124" ]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if [[ "$last" -ne "124" ]]; then

if [[ "$last" -ne "124" ]]
then exit $last
fi
echo "timeout: retry"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo "Timeout reach. Retrying."

echo "timeout: retry"
done

echo 'max retries reached. fail!'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo "Max retries reached."

@vpetersson vpetersson merged commit 91c0a3b into Screenly:master Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants