rch-common 2.1.21

Shared types and utilities for Remote Compilation Helper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Runs the Linux shell contract against real processes, not a reimplementation
//! of the embedded protocol. The fixture uses Python's standard library only.

#[cfg(target_os = "linux")]
#[test]
fn worker_execution_policy_shell_contract() {
    let status = std::process::Command::new("python3")
        .arg(concat!(
            env!("CARGO_MANIFEST_DIR"),
            "/tests/worker_execution_policy.py"
        ))
        .status()
        .expect("Linux execution-policy integration tests require python3");
    assert!(status.success(), "worker execution policy contract failed");
}