@@ -243,17 +243,16 @@ The line coverage is saved in [tests/coverage](tests/coverage). To update the
243
243
coverage before submitting a PR, run the coverage test :
244
244
245
245
` ` ` bash
246
- CRATE=" kvm-ioctls"
246
+ cd path/to/ kvm-ioctls
247
247
# NOTE: ` latest` should point to the latest version, but you can specify an exact
248
248
# one as we do with CONTAINER_VERSION in .buildkite/autogenerate_pipeline.py file.
249
249
TAG="latest"
250
250
docker pull rustvmm/dev:${TAG}
251
251
docker run --device=/dev/kvm \
252
252
-it \
253
253
--security-opt seccomp=unconfined \
254
- --volume $(pwd)/${CRATE}:/${CRATE} \
254
+ --volume $(pwd):/crate --workdir /crate \
255
255
rustvmm/dev:${TAG}
256
- cd ${crate}
257
256
pytest --profile=devel rust-vmm-ci/integration_tests/test_coverage.py
258
257
```
259
258
@@ -331,16 +330,16 @@ pipeline output. In its present form, the test cannot fail.
331
330
To run the test locally :
332
331
333
332
` ` ` bash
333
+ cd path/to/vm-superio
334
334
# NOTE: ` latest` should point to the latest version, but you can specify an exact
335
335
# one as we do with CONTAINER_VERSION in .buildkite/autogenerate_pipeline.py file.
336
336
TAG="latest"
337
337
docker pull rustvmm/dev:${TAG}
338
338
docker run --device=/dev/kvm \
339
339
-it \
340
340
--security-opt seccomp=unconfined \
341
- --volume $(pwd)/${CRATE}:/${CRATE} \
341
+ --volume $(pwd):/crate --workdir /crate \
342
342
rustvmm/dev:${TAG}
343
- cd ${CRATE}
344
343
pytest rust-vmm-ci/integration_tests/test_benchmark.py -s
345
344
```
346
345
@@ -354,18 +353,15 @@ You can find the latest container version in the
354
353
[ script] ( .buildkite/autogenerate_pipeline.py )
355
354
that autogenerates the pipeline. For example:
356
355
``` bash
357
- cd ~ /vm-superio
358
- CRATE=" vm-superio"
356
+ cd path/to/vm-superio
359
357
# NOTE: `latest` should point to the latest version, but you can specify an exact
360
358
# one as we do with CONTAINER_VERSION in .buildkite/autogenerate_pipeline.py file.
361
359
TAG=" latest"
362
360
docker pull rustvmm/dev:${TAG}
363
361
docker run -it \
364
362
--security-opt seccomp=unconfined \
365
- --volume $( pwd) :/${CRATE} \
366
- --volume ~ /.ssh:/root/.ssh \
363
+ --volume $( pwd) :/crate --workdir /crate \
367
364
rustvmm/dev:${TAG}
368
- cd vm-superio
369
365
./rust-vmm-ci/test_run.py
370
366
```
371
367
0 commit comments