diff --git a/.github/workflows/oay_test_webdav.yml b/.github/workflows/oay_test_webdav.yml index 8c15449a6ffa..e979c8d0d0b2 100644 --- a/.github/workflows/oay_test_webdav.yml +++ b/.github/workflows/oay_test_webdav.yml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -name: Oay Test WebDAV +name: Oay WebDAV Test on: push: @@ -34,7 +34,7 @@ concurrency: cancel-in-progress: true jobs: - oay-webdav-test: + backend-fs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -52,19 +52,13 @@ jobs: - name: Build and Start WebDAV service run: | cargo build --package oay --bin webdav --release - nohup cargo run --package oay --bin webdav --release & + cargo run --package oay --bin webdav --release & - name: Run litmus tests run: | cd litmus-0.13 - TESTS="http basic copymove" HTDOCS=htdocs TESTROOT=. ./litmus http://localhost:3000 >> litmus.log - - - name: Check litmus test results - run: | - cat litmus-0.13/litmus.log - if grep -q "FATAL" litmus-0.13/litmus.log; then + TESTS="http basic copymove" HTDOCS=htdocs TESTROOT=. ./litmus http://localhost:3000 | tee litmus.log + if grep -E "FATAL|FAIL" litmus.log; then echo "Tests failed" exit 1 - else - echo "All tests passed" fi