Skip to content

Commit d7227c6

Browse files
committed
CI: update the upload path for nightly build
The current path for meson test is the build dir, thus it's necessary to use the absolut path for log_dir. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 48b4976 commit d7227c6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/run-nightly-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
{
105105
"controller" : "${CONTROLLER}",
106106
"ns1": "${BDEV0}",
107-
"log_dir": "tests/nvmetests/",
107+
"log_dir": "/nvme-cli/tests/nvmetests/",
108108
"nvme_bin": "/nvme-cli/.build-ci/nvme"
109109
}
110110
EOJ
@@ -116,7 +116,7 @@ jobs:
116116
sudo chmod +x test.sh
117117
118118
#Create shared volume mount point for artifact upload
119-
mkdir nvme-cli
119+
mkdir -p nvme-cli
120120
121121
#Expose all devices to the container through the `privileged` flag.
122122
#
@@ -132,8 +132,8 @@ jobs:
132132
ghcr.io/linux-nvme/debian:latest /test.sh
133133
podman_exit=$?
134134
135-
mkdir -p nvme-cli/tests/nvmetests/meson-logs
136-
cp -r nvme-cli/.build-ci/meson-logs/. \
137-
nvme-cli/tests/nvmetests/meson-logs/ 2>/dev/null || true
135+
# Copy the results into the expected upload directory
136+
sudo cp -r nvme-cli/.build-ci/meson-logs \
137+
nvme-cli/tests/nvmetests 2>/dev/null || true
138138
139139
exit $podman_exit

0 commit comments

Comments
 (0)