Skip to content

Commit 165bd32

Browse files
authored
Merge pull request #1213 from akinomyoga/failglob-test
test: fix tests for failglob
2 parents 8304d33 + aa8e4af commit 165bd32

16 files changed

+27
-26
lines changed

test/t/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def chdir(self, path: str):
665665
def set(self, name: str, value: bool):
666666
self._unprotect_set(name)
667667
if value:
668-
self._safe_exec("set -u %s" % name)
668+
self._safe_exec("set -o %s" % name)
669669
else:
670670
self._safe_exec("set +o %s" % name)
671671
self._protect_set(name)

test/t/unit/Makefile.am

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,39 @@ EXTRA_DIST = \
44
test_unit_compgen.py \
55
test_unit_compgen_available_interfaces.py \
66
test_unit_compgen_commands.py \
7+
test_unit_compgen_filedir.py \
8+
test_unit_compgen_ip_addresses.py \
9+
test_unit_compgen_known_hosts.py \
10+
test_unit_compgen_pgids.py \
11+
test_unit_compgen_pids.py \
12+
test_unit_compgen_pnames.py \
713
test_unit_compgen_split.py \
14+
test_unit_compgen_tilde.py \
15+
test_unit_compgen_variables.py \
16+
test_unit_compgen_xinetd_services.py \
17+
test_unit_complete_longopt.py \
818
test_unit_count_args.py \
919
test_unit_delimited.py \
1020
test_unit_deprecate_func.py \
1121
test_unit_dequote.py \
1222
test_unit_expand.py \
1323
test_unit_expand_glob.py \
1424
test_unit_expand_tilde.py \
15-
test_unit_filedir.py \
1625
test_unit_find_unique_completion_pair.py \
17-
test_unit_get_first_arg.py \
1826
test_unit_get_cword.py \
27+
test_unit_get_first_arg.py \
1928
test_unit_get_words.py \
2029
test_unit_initialize.py \
21-
test_unit_ip_addresses.py \
22-
test_unit_known_hosts.py \
2330
test_unit_load.py \
24-
test_unit_longopt.py \
2531
test_unit_looks_like_path.py \
2632
test_unit_parse_help.py \
2733
test_unit_parse_usage.py \
28-
test_unit_pgids.py \
29-
test_unit_pids.py \
30-
test_unit_pnames.py \
3134
test_unit_quote.py \
3235
test_unit_quote_compgen.py \
3336
test_unit_realcommand.py \
3437
test_unit_split.py \
35-
test_unit_tilde.py \
3638
test_unit_unlocal.py \
37-
test_unit_variables.py \
38-
test_unit_xfunc.py \
39-
test_unit_xinetd_services.py
39+
test_unit_xfunc.py
4040

4141
all:
4242

test/t/unit/test_unit_filedir.py renamed to test/t/unit/test_unit_compgen_filedir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
@pytest.mark.bashcomp(cmd=None, ignore_env=r"^\+COMPREPLY=")
13-
class TestUnitFiledir:
13+
class TestUnitCompgenFiledir:
1414
@pytest.fixture(scope="class")
1515
def functions(self, request, bash):
1616
assert_bash_exec(

test/t/unit/test_unit_ip_addresses.py renamed to test/t/unit/test_unit_compgen_ip_addresses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
@pytest.mark.bashcomp(cmd=None, ignore_env=r"^\+COMPREPLY=")
7-
class TestUnitIpAddresses:
7+
class TestUnitCompgenIpAddresses:
88
@pytest.fixture(scope="class")
99
def functions(self, request, bash):
1010
assert_bash_exec(

test/t/unit/test_unit_pgids.py renamed to test/t/unit/test_unit_compgen_pgids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@pytest.mark.bashcomp(cmd=None, ignore_env=r"^\+(COMPREPLY|cur)=")
9-
class TestUnitPgids:
9+
class TestUnitCompgenPgids:
1010
def test_smoke(self, bash):
1111
with bash_env_saved(bash) as bash_env:
1212
bash_env.write_variable("cur", "")

test/t/unit/test_unit_pids.py renamed to test/t/unit/test_unit_compgen_pids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@pytest.mark.bashcomp(cmd=None, ignore_env=r"^\+COMPREPLY=")
9-
class TestUnitPids:
9+
class TestUnitCompgenPids:
1010
def test_smoke(self, bash):
1111
with bash_env_saved(bash) as bash_env:
1212
bash_env.write_variable("cur", "")

test/t/unit/test_unit_pnames.py renamed to test/t/unit/test_unit_compgen_pnames.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
@pytest.mark.bashcomp(cmd=None, ignore_env=r"^\+COMPREPLY=")
7-
class TestUnitPnames:
7+
class TestUnitCompgenPnames:
88
def test_smoke(self, bash):
99
with bash_env_saved(bash) as bash_env:
1010
bash_env.write_variable("cur", "")

test/t/unit/test_unit_tilde.py renamed to test/t/unit/test_unit_compgen_tilde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
@pytest.mark.bashcomp(cmd=None, ignore_env=r"^\+COMPREPLY=")
7-
class TestUnitTilde:
7+
class TestUnitCompgenTilde:
88
def test_1(self, bash):
99
assert_bash_exec(bash, "! _comp_compgen_tilde >/dev/null")
1010

test/t/unit/test_unit_variables.py renamed to test/t/unit/test_unit_compgen_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
@pytest.mark.bashcomp(cmd=None, ignore_env=r"^[+-](___var|assoc[12])=")
7-
class TestUnitVariables:
7+
class TestUnitCompgenVariables:
88
@pytest.fixture(scope="class")
99
def functions(self, request, bash):
1010
assert_bash_exec(bash, "unset assoc1 && declare -A assoc1=([idx]=1)")

0 commit comments

Comments
 (0)