diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:18 +0000 |
commit | f4acb49ea148cdd899f7f29f1591c7bc853c2135 (patch) | |
tree | b62d60873864065d6428a84a119dd8a3c90f1397 /test/update-test-cmd-list | |
parent | Adding upstream version 1:2.11. (diff) | |
download | bash-completion-f4acb49ea148cdd899f7f29f1591c7bc853c2135.tar.xz bash-completion-f4acb49ea148cdd899f7f29f1591c7bc853c2135.zip |
Adding upstream version 1:2.12.0.upstream/1%2.12.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/update-test-cmd-list')
-rwxr-xr-x | test/update-test-cmd-list | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/update-test-cmd-list b/test/update-test-cmd-list index 115ae16..20224b4 100755 --- a/test/update-test-cmd-list +++ b/test/update-test-cmd-list @@ -1,4 +1,5 @@ -#!/bin/bash -eu +#!/usr/bin/env bash +set -eu mydir=$( cd "$(dirname "$0")" @@ -7,7 +8,7 @@ mydir=$( cat "$mydir"/t/test_*.py | tr -d '\n' | - grep -Eo '@pytest.mark.complete(\([^)]*\))' | - sed -ne 's/^[^"]*"\\\?\([^_][^[:space:]"]*\)[[:space:]"].*/\1/p' | - sort -u \ + grep -Eo '@pytest.mark.complete\(([^)]*\<require_(cmd|longopt) *= *True\>[^)]*)\)' | + sed -ne 's/^[^"]*"\\\{0,1\}\([^_][^[:space:]"]*\)[[:space:]"].*/\1/p' | + LC_ALL=C sort -u \ >"$mydir"/test-cmd-list.txt |