gcpemu-testdir

command
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command gcpemu-testdir lets a test harness with no OS file lock of its own, such as the console's Playwright e2e, keep its Instances in Test data dirs (ADR 0077, #1035). It is a development tool, never released.

gcpemu-testdir hold <dir>

takes the owner lock of the Test data dir dir, creating dir if need be, prints the line "held" once it has it, and keeps it until its stdin closes. The harness gives it a pipe for stdin, which closes when the harness ends however it ends, so the lock is held for exactly as long as the harness lives. It ignores SIGINT and SIGTERM, which reach it with the rest of its process group while the harness still stops its Instance.

gcpemu-testdir reclaim <root>

is a run-start reclaim (ADR 0057): it reclaims every Test data dir whose test has ended, those directly under root among them, with their Instances' containers, networks and volumes, for up to reclaimTimeout; a later reclaim finishes what it did not. While the container runtime does not answer, it keeps the dirs under root that no object records, and fails.

Jump to

Keyboard shortcuts

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