Use a glob to find test-suite.log on a failing Travis build.
authorDan Fandrich <dan@coneharvesters.com>
Sat, 3 Nov 2018 15:43:24 +0000 (16:43 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 3 Nov 2018 15:45:19 +0000 (16:45 +0100)
When running on libexif-testsuite, the file is in tests/ not test/.

.travis.yml

index c1fb826..0f5532a 100644 (file)
@@ -109,7 +109,7 @@ script:
   - if [ "$CONFIG" = "coverage" ] ; then cd "$HOME"/libexif-testsuite; CFLAGS=--coverage; LDFLAGS=--coverage; export MAKEFLAGS='-j 1'; fi
   - ./configure --prefix="${HOME}"/install CFLAGS="$CFLAGS" ${LDFLAGS:+LDFLAGS=$LDFLAGS} || { tail -300 config.log; false; }
   - make
-  - make check || { tail -300 test/test-suite.log; false; }
+  - make check || { tail -300 test*/test-suite.log; false; }
   - make install
   - if [ "$CONFIG" = "coverage" ] ; then cd "$TRAVIS_BUILD_DIR"; fi