.github: detect Finit version and figure out build dir on failure
@@ -60,7 +60,9 @@ jobs:
/tmp/sbin/initctl -h
- name: Run Unit Tests
run: |
- make -j1 distcheck || (ls -l test; ls -l .; cat finit-4.3-dev/_build/sub/test/start-stop-fserv.log; echo "test-suite.log ================================================================"; cat test/test-suite.log; cat finit-4.3-dev/_build/sub/test/test-suite.log; false)
+ ver=$(/tmp/sbin/initctl -V | awk '/Finit.*/ {print $2;}')
+ dir=finit-$ver/_build/sub
+ make -j1 distcheck || (cat $dir/test/test-suite.log; false)
- name: Upload Test Results
uses: actions/upload-artifact@v2
with:
