This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 4aa186e9e ci(oay): Polish oay webdav test (#2971)
4aa186e9e is described below
commit 4aa186e9ea39fc9b2999edf11cbbee43cbd8d062
Author: Flash <[email protected]>
AuthorDate: Thu Aug 31 23:04:27 2023 +0800
ci(oay): Polish oay webdav test (#2971)
* update oay-webdav-ci
* try
Signed-off-by: Xuanwo <[email protected]>
* Polish
Signed-off-by: Xuanwo <[email protected]>
* Fix log path
Signed-off-by: Xuanwo <[email protected]>
* Update job name
Signed-off-by: Xuanwo <[email protected]>
* update
---------
Signed-off-by: Xuanwo <[email protected]>
Co-authored-by: Xuanwo <[email protected]>
---
.github/workflows/oay_test_webdav.yml | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/oay_test_webdav.yml
b/.github/workflows/oay_test_webdav.yml
index 8c15449a6..e979c8d0d 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