exectest

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package exectest writes the scripts factory-agent's tests exec (fake harnesses, wrappers, stubs) through execfile, so that exec'ing them can't fail with ETXTBSY while parallel tests fork. It is imported by tests only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(t testing.TB, path, script string, mode fs.FileMode)

Write writes script to path with mode (which needs an exec bit to be exec'd, and to be written under syscall.ForkLock), failing the test on an error. The parent directory must exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL