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 | f2621414ee5f2f601424c22f00e207903e3b6104 (patch) | |
tree | 56a856dafd1ca684bb23263cacaa723ee4f404fc /test/update-test-cmd-list | |
parent | Adding debian version 1:2.11-8. (diff) | |
download | bash-completion-f2621414ee5f2f601424c22f00e207903e3b6104.tar.xz bash-completion-f2621414ee5f2f601424c22f00e207903e3b6104.zip |
Merging upstream version 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 |