From 934dbf67652326ab7a996f244c9fb7625a23d51d Mon Sep 17 00:00:00 2001 From: Sanchit Ram Arvind Date: Mon, 21 Apr 2025 09:54:02 -0500 Subject: [PATCH] fix hexedit test --- projects/rigaux.org/hexedit/package.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/projects/rigaux.org/hexedit/package.yml b/projects/rigaux.org/hexedit/package.yml index e0fddfbfdb..0a43d1526e 100644 --- a/projects/rigaux.org/hexedit/package.yml +++ b/projects/rigaux.org/hexedit/package.yml @@ -18,9 +18,14 @@ build: make install test: - true - # FIXME: curses tool, no --version, --help is exit code 1 - # hexedit -h + # hexedit -h shows usage and exits 1 (as noted in the previous FIXME). + # It's a curses tool, output checks are unreliable. + # Checking the documented exit code is the simplest robust test. + script: + # The `!` negates the exit status. + # This command succeeds if `hexedit -h` exits non-zero. + - run: "! hexedit -h >/dev/null 2>&1" + provides: - bin/hexedit