Skip to content

Commit eb49f57

Browse files
bjzhjingrbradford
authored andcommitted
loader: Remove ignore config to run bzImage loader unit test
ignore has not taken effect to avoid run bzImage loader unit test, remove it. It's required to follow steps on README.md to do the test. Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
1 parent 9cde9f2 commit eb49f57

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ than the coverage reported in [tests/coverage](tests/coverage).
8787

8888
As we don't want to distribute an entire kernel bzImage, the `load_bzImage` test is ignored by
8989
default. In order to test the bzImage support, one needs to locally build a bzImage, copy it
90-
to the `src/loader` directory and run the ignored test:
90+
to the `src/loader` directory and run cargo test:
9191

9292
```shell
9393
# Assuming your linux-loader and linux-stable are both under $LINUX_LOADER
@@ -101,5 +101,5 @@ $ docker run -it \
101101
--volume $(pwd):/linux-loader \
102102
fandree/rust-vmm-dev
103103
$ cd linux-loader/
104-
$ cargo test -- --ignored
104+
$ cargo test
105105
```

src/loader/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ mod test {
391391
#[allow(safe_packed_borrows)]
392392
#[allow(non_snake_case)]
393393
#[test]
394-
#[ignore]
395394
fn load_bzImage() {
396395
let gm = create_guest_mem();
397396
let image = make_bzImage();

0 commit comments

Comments
 (0)