From 8de3d7b4719bddfd2c24a53e6db9278914c16410 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 15:55:12 -0300 Subject: tests: a test session's state file is its HOME's, never the user's: the process harness's child (when it is given a root), daemon.py and soak.py leave XDG_DATA_HOME unset, as they set HOME, so a session's Recent and dumps go to the test's `.local/share/pardes/pardes.xitdb`; with the user's XDG_DATA_HOME passed on, the dumps a run makes (an Upgrade's `upgrade-`, the Dump cases) would go into the user's state file, which keeps the newest 32, and push the user's own out, where the `.dump` files a test wrote were only added beside theirs; nothing changes where XDG_DATA_HOME is unset, as on this machine Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/soak.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/soak.py') diff --git a/test/soak.py b/test/soak.py index 99f43cc9..d99f862c 100644 --- a/test/soak.py +++ b/test/soak.py @@ -1759,6 +1759,9 @@ def instant(args): def main(): + # A session's state file is its HOME's, never the user's: the dumps a + # test makes there would push the user's out. + os.environ.pop('XDG_DATA_HOME', None) ap = argparse.ArgumentParser(description=__doc__.split('\n\n')[0]) ap.add_argument('where', choices=['local', 'box', 'instant']) ap.add_argument('--box', action='store_true', help='instant: the session on the box (else local, at each --rtts)') -- cgit v1.3