Fix 'make test' detection when LANG is not in English (#10499)
This commit is contained in:
parent
2f4f828b45
commit
a25edb51a9
@ -1139,7 +1139,11 @@ def _has_make_target(self, target):
|
||||
Returns:
|
||||
bool: True if 'target' is found, else False
|
||||
"""
|
||||
make = inspect.getmodule(self).make
|
||||
# Prevent altering LC_ALL for 'make' outside this function
|
||||
make = copy.deepcopy(inspect.getmodule(self).make)
|
||||
|
||||
# Use English locale for missing target message comparison
|
||||
make.add_default_env('LC_ALL', 'C')
|
||||
|
||||
# Check if we have a Makefile
|
||||
for makefile in ['GNUmakefile', 'Makefile', 'makefile']:
|
||||
|
Loading…
Reference in New Issue
Block a user