dont break if phantomjs fails #334
This commit is contained in:
parent
8888c34c22
commit
5e66346d12
|
|
@ -786,7 +786,7 @@ function analyze() {
|
|||
local pagefilename=$(get_filename $1 $2)
|
||||
|
||||
echo "Analyzing $url"
|
||||
phantomjs --ignore-ssl-errors=yes $PROXY_PHANTOMJS $YSLOW_FILE -d -r $RULESET -f xml --ua "$USER_AGENT_YSLOW" $VIEWPORT_YSLOW -n "$pagefilename.har" "$url" >"$REPORT_DATA_PAGES_DIR/$pagefilename.xml" 2>> $REPORT_DATA_DIR/phantomjs.error.log || echo "PhantomJS could not handle $url ,check the error log: $REPORT_DATA_DIR/phantomjs.error.log"; exit 1
|
||||
phantomjs --ignore-ssl-errors=yes $PROXY_PHANTOMJS $YSLOW_FILE -d -r $RULESET -f xml --ua "$USER_AGENT_YSLOW" $VIEWPORT_YSLOW -n "$pagefilename.har" "$url" >"$REPORT_DATA_PAGES_DIR/$pagefilename.xml" 2>> $REPORT_DATA_DIR/phantomjs.error.log || echo "PhantomJS could not handle $url , check the error log: $REPORT_DATA_DIR/phantomjs.error.log"
|
||||
|
||||
local s=$(du -k "$REPORT_DATA_PAGES_DIR/$pagefilename.xml" | cut -f1)
|
||||
# Check that the size is bigger than 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue