| 928 | ("BASE_NODE_P2P_SIGNER_ADDRESS", "0xAf6E19BE0F9cE7f8afd49a1824851023A8249e8a"), |
| 929 | ])] |
| 930 | fn validates_sequencer_key_from_env(#[case] env_vars: Vec<(&str, &str)>) { |
| 931 | let mut command = Command::new(std::env::current_exe().unwrap()); |
| 932 | command.arg("--exact").arg(SIGNER_ENV_CHILD_TEST).arg("--ignored"); |
| 933 | |
| 934 | for key in SIGNER_ENV_KEYS { |
| 935 | command.env_remove(key); |
| 936 | } |
| 937 | for (key, value) in env_vars { |
| 938 | command.env(key, value); |
| 939 | } |
| 940 | let output = command.output().unwrap(); |
| 941 | |
| 942 | assert!( |
| 943 | output.status.success(), |
| 944 | "child env parsing test failed\nstdout:\n{}\nstderr:\n{}", |
| 945 | String::from_utf8_lossy(&output.stdout), |
| 946 | String::from_utf8_lossy(&output.stderr) |
| 947 | ); |
| 948 | } |
| 949 | |
| 950 | #[test] |
| 951 | #[ignore = "spawned by validates_sequencer_key_from_env with isolated process env"] |