Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snp test is broken #1617

Open
kraxel opened this issue Apr 10, 2025 · 1 comment · May be fixed by #1621
Open

snp test is broken #1617

kraxel opened this issue Apr 10, 2025 · 1 comment · May be fixed by #1621

Comments

@kraxel
Copy link
Contributor

kraxel commented Apr 10, 2025

the snp test depends on the pxe test having configured the network beforehand, it does not work on its own.
swap the order of the tests ...

 pub fn test() {
     info!("Testing Network protocols");
 
-    pxe::test();
     snp::test();
+    pxe::test();
 }

... and watch it fail:

[PANIC]: panicked at uefi-test-runner/src/proto/network/snp.rs:112:9:
assertion `left == right` failed
  left: [0, 0, 0, 0, 0]
 right: [4, 4, 3, 2, 1]
Error: tests did not complete successfully
@phip1611
Copy link
Member

Oh, good catch! It shouldn't be like that; test runs should be idempotent

kraxel added a commit to kraxel/uefi-rs that referenced this issue Apr 10, 2025
With the switch to virtio-net we have networking on all platforms.
Turn on the pxe test everywhere.

Also serves as workaround for
rust-osdev#1617

Signed-off-by: Gerd Hoffmann <[email protected]>
phip1611 pushed a commit to kraxel/uefi-rs that referenced this issue Apr 10, 2025
With the switch to virtio-net we have networking on all platforms.
Turn on the pxe test everywhere.

Also serves as workaround for
rust-osdev#1617

Signed-off-by: Gerd Hoffmann <[email protected]>
@phip1611 phip1611 linked a pull request Apr 11, 2025 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants