]> Sergey Matveev's repositories - public-inbox.git/commit
t/lei: fix TEST_RUN_MODE=0, simplify oneshot fallback
authorEric Wong <e@80x24.org>
Fri, 1 Jan 2021 05:47:48 +0000 (17:47 -1200)
committerEric Wong <e@80x24.org>
Sat, 2 Jan 2021 09:15:08 +0000 (09:15 +0000)
commitcc1660fd3bb16f684062d5c63ae4320d2c7f939c
treeeea53cdfad85c24eef9bea0f5e2bcbd73a47b806
parent86851a5a264bc0e14e925982b09337ab32e20795
t/lei: fix TEST_RUN_MODE=0, simplify oneshot fallback

We need to use an absolute path after chdir in run modes
where scripts aren't loaded into in-memory subs.

The oneshot test was also failing under TEST_RUN_MODE=0 due to
no "lei-oneshot" command existing on the FS.  So we force a
socket failure by making XDG_RUNTIME_DIR too large to fit into
the 108-byte .sun_path field of "struct sockaddr_un".  This
even lets us simplify lei-oneshot significantly.
t/lei-oneshot.t
t/lei.t