Repository navigation
Commit 5b5b333
tests: check the CLI's behavior instead of its old output (SL3.11a)
Two of the checks that run the nvx-rs that NVX_RS names still compared
its output with the words that it inherited from nvx.py. The refusal
of an egress policy that is not an object had to read "egress policy
must be an object", the message of the Python code that nvx-rs
replaced in #597. The help of nvx-rs run had to state "alpine 128" and
the other guests' defaults, as nvx.py's help did before #902. Neither
wording is a behavior: a reworded message or help failed the checks,
while a refusal with another code, or a run that booted a guest with
another memory default, passed them.
The egress check now reads the refusal through nvx_rs as the scenarios
do: its stable code, unsupported, and a message of one line without
that code. The memory check now runs nvx-rs run --dry-run for each
guest, through nvx_rs.command_line, on placeholder artifacts, and reads
the --memory of the OpenVMM command that a run would launch: the
memory that guests.py gives test-microvm. nvx_rs.query's docstring no
longer says that nvx.py prints the message of the Python code that
nvx-rs replaced.
On Windows, with nvx-rs built from this tree, both checks passed. With
the message and the help reworded, the old checks failed and the new
ones passed; with the refusal's code changed to io and Alpine's default
memory to 256 MiB, the old checks passed and the new ones failed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 14ca267 commit 5b5b333
2 files changed
Lines changed: 50 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | | - | |
| 392 | + | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2453 | 2453 | | |
2454 | 2454 | | |
2455 | 2455 | | |
2456 | | - | |
| 2456 | + | |
2457 | 2457 | | |
2458 | | - | |
2459 | | - | |
2460 | | - | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
2464 | | - | |
2465 | | - | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
2471 | 2499 | | |
2472 | 2500 | | |
2473 | 2501 | | |
| |||
2522 | 2550 | | |
2523 | 2551 | | |
2524 | 2552 | | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
2525 | 2556 | | |
2526 | | - | |
2527 | | - | |
2528 | | - | |
| 2557 | + | |
2529 | 2558 | | |
| 2559 | + | |
| 2560 | + | |
2530 | 2561 | | |
2531 | 2562 | | |
2532 | 2563 | | |
| |||
0 commit comments