Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

851 B
Raw Blame
//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)
	}
}