2 Star 1 Fork 3

Linux-Gitee/wesnoth

forked from Gitee 极速下载/wesnoth 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jenkins-wrap.sh 472 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alexander van Gessel 提交于 2014-06-18 05:24 +08:00 . Actually return the script's output
#!/bin/sh
COUNTER=9
export PATH="/usr/local/bin:$PATH"
run_test() {
xvfb-run -e xvfb-err "$@"
}
run_test "$@"
ERRORCODE=$?
while [ $COUNTER -gt 0 -a $ERRORCODE -eq 1 ];do
if [ -s xvfb-err ]; then
echo "xvfb output:"
cat xvfb-err
rm xvfb-err
fi
echo "\n\'xvfb-run $@' returned 1, which could mean that xvfb failed. Retrying..."
run_test "$@"
ERRORCODE=$?
COUNTER=$(($COUNTER - 1))
done
rm -f xvfb-err
exit $ERRORCODE
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/linux-gitee/wesnoth.git
git@gitee.com:linux-gitee/wesnoth.git
linux-gitee
wesnoth
wesnoth
master

搜索帮助