Commit 04a8b11
committed
test: improve Rust toolchain detection in E2E tests
Previously, isRustAvailable() only checked for rustc binary, which could
give false positives when WASM cache hits in CI (rustc present but
toolchain incomplete).
Changes:
- Check for rustc, cargo, and wasm32-unknown-unknown target
- Add skip logic to TestE2E_ScriptValidation for Rust tests
- Comprehensive toolchain validation prevents compilation failures
This fixes 3 failing tests:
- TestE2E_ScriptingAPI_ResponseModification
- TestE2E_ScriptingAPI_BothTriggers
- TestE2E_ScriptValidation/Valid_Rust
All tests now properly detect unavailable Rust environment and skip
gracefully instead of failing with 400 errors.1 parent 99b9166 commit 04a8b11
1 file changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
583 | 589 | | |
584 | 590 | | |
585 | 591 | | |
| |||
601 | 607 | | |
602 | 608 | | |
603 | 609 | | |
604 | | - | |
| 610 | + | |
| 611 | + | |
605 | 612 | | |
606 | | - | |
607 | | - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
608 | 631 | | |
0 commit comments