git: db951ba365a4 - stable/14 - kyua-debug: Add -P option

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Mon, 23 Nov 2026 01:39:33 UTC
The branch stable/14 has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=db951ba365a49a0024da90a6c71a1abe08edbcdb

commit db951ba365a49a0024da90a6c71a1abe08edbcdb
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-07-22 08:37:56 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-23 01:35:33 +0000

    kyua-debug: Add -P option
    
    Add -P as shorthand for --pause-before-cleanup.
    
    MFC after:      1 week
    Reviewed by:    ngie
    Differential Revision:  https://reviews.freebsd.org/D56613
    
    (cherry picked from commit 7c51da13ae55dc98e9cc1b794e1fe6fc001d7f42)
---
 contrib/kyua/cli/cmd_debug.cpp   | 1 +
 contrib/kyua/doc/kyua-debug.1.in | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/contrib/kyua/cli/cmd_debug.cpp b/contrib/kyua/cli/cmd_debug.cpp
index 060113d137fa..8ad52afb73a6 100644
--- a/contrib/kyua/cli/cmd_debug.cpp
+++ b/contrib/kyua/cli/cmd_debug.cpp
@@ -69,6 +69,7 @@ const cmdline::bool_option pause_before_cleanup_upon_fail_option(
 
 
 const cmdline::bool_option pause_before_cleanup_option(
+    'P',
     "pause-before-cleanup",
     "Pauses right before the test cleanup");
 
diff --git a/contrib/kyua/doc/kyua-debug.1.in b/contrib/kyua/doc/kyua-debug.1.in
index 263aef3667a7..a28c82dc270f 100644
--- a/contrib/kyua/doc/kyua-debug.1.in
+++ b/contrib/kyua/doc/kyua-debug.1.in
@@ -25,7 +25,7 @@
 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 .\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.Dd March 25, 2025
+.Dd July 22, 2026
 .Dt KYUA-DEBUG 1
 .Os
 .Sh NAME
@@ -99,7 +99,7 @@ This flag makes it possible to preserve such artifacts immediately after a test
 failure, simplifying debugging.
 Otherwise, these artifacts would be removed by the test cleanup routine or
 by Kyua built-in cleanup mechanism.
-.It Fl -pause-before-cleanup
+.It Fl -pause-before-cleanup , Fl P
 The unconditional variant of the previous option.
 This can be helpful for reproducing the infrastructure or fixture of a passing
 test for further development or additional analysis.