mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
Script smoke still asserted the removed grouped runner while native verification used a separate suite. Share the canonical execution controls so both entrypoints reject lost checks, false passes and changed deadlines.
27 lines
851 B
Go
27 lines
851 B
Go
//go:build !windows
|
|
|
|
package installtests
|
|
|
|
import (
|
|
"context"
|
|
"os/exec"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
// The Python controls exercise both workflow phases and real compiled Go tests
|
|
// without recursively running the installer suite. Native CI supplies the
|
|
// platform timing proof; these controls reject lost checks and false passes.
|
|
func TestNativeUnixContractRunnerPartitionsWithoutDroppingChecks(t *testing.T) {
|
|
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
|
|
defer cancel()
|
|
cmd := exec.CommandContext(ctx, "python3", "-I", "-S", repoFile("scripts", "tests", "test_native_installer_contract_runner.py"))
|
|
output, err := cmd.CombinedOutput()
|
|
if ctx.Err() != nil {
|
|
t.Fatalf("native installer runner control deadline: %v", ctx.Err())
|
|
}
|
|
if err != nil {
|
|
t.Fatalf("native installer runner control: %v\n%s", err, output)
|
|
}
|
|
}
|