mirror of https://github.com/CGAL/cgal
Fix the regular expression to match "CGAL warning" and detect a `w`
This commit is contained in:
parent
999ce8134a
commit
6addecb2f2
|
|
@ -50,7 +50,7 @@ print_testresult()
|
||||||
# 'QMessageBox::warning'.
|
# 'QMessageBox::warning'.
|
||||||
if grep -v -F 'CMake Warning at /usr/share/cmake/Modules/FindBoost' CompilerOutput_$1 ProgramOutput.*.$1 | grep -i -E -q '(^|[^a-zA-Z_,:-])warning'
|
if grep -v -F 'CMake Warning at /usr/share/cmake/Modules/FindBoost' CompilerOutput_$1 ProgramOutput.*.$1 | grep -i -E -q '(^|[^a-zA-Z_,:-])warning'
|
||||||
then
|
then
|
||||||
if grep -v -F 'CMake Warning at /usr/share/cmake/Modules/FindBoost' CompilerOutput_$1 ProgramOutput.*.$1 | grep -i -E '(^|[^a-zA-Z_,:-])warning' | grep -i -q "include[/\]CGAL\|cmake"
|
if grep -v -F 'CMake Warning at /usr/share/cmake/Modules/FindBoost' CompilerOutput_$1 ProgramOutput.*.$1 | grep -i -E '(^|[^a-zA-Z_,:-])warning' | grep -i -q "include[/\]CGAL\|cmake|CGAL warning"
|
||||||
then
|
then
|
||||||
RESULT="w"
|
RESULT="w"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ for t_id in range(0, len(tests)):
|
||||||
labels.add(label)
|
labels.add(label)
|
||||||
tests_per_label[label].append(t)
|
tests_per_label[label].append(t)
|
||||||
|
|
||||||
warning_pattern=re.compile(r'(.*([^a-zA-Z_,:-])([^\d]\s)warning).*?(\[|\n)', flags=re.IGNORECASE)
|
warning_pattern=re.compile(r'(.*([^a-zA-Z_,:-])warning)', flags=re.IGNORECASE)
|
||||||
w_det=re.compile("warning");
|
w_det=re.compile("warning");
|
||||||
filter_pattern=re.compile(r'cmake|cgal', flags=re.IGNORECASE);
|
filter_pattern=re.compile(r'cmake|cgal', flags=re.IGNORECASE);
|
||||||
with open_file_create_dir(result_file_name.format(dir=os.getcwd(),
|
with open_file_create_dir(result_file_name.format(dir=os.getcwd(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue