浏览代码

contrib: check that tar.gz file exists

Nathalie Furmento 7 年之前
父节点
当前提交
504a367ba4
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      contrib/ci.inria.fr/job-1-check.sh

+ 9 - 1
contrib/ci.inria.fr/job-1-check.sh

@@ -22,8 +22,16 @@ export PKG_CONFIG_PATH=/home/ci/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
 export LD_LIBRARY_PATH=/home/ci/usr/local/lib:$LD_LIBRARY_PATH
 
 tarball=$(ls -tr starpu-*.tar.gz | tail -1)
-basename=$(basename $tarball .tar.gz)
 
+if test -z "$tarball"
+then
+    echo Error. No tar.gz file
+    ls
+    pwd
+    exit 1
+fi
+
+basename=$(basename $tarball .tar.gz)
 export STARPU_HOME=$PWD/$basename/home
 mkdir -p $basename
 cd $basename