donate-cpu: skip torture test file
This commit is contained in:
parent
5e9d06d435
commit
31560299f8
|
@ -191,7 +191,11 @@ while True:
|
||||||
if tgz is None:
|
if tgz is None:
|
||||||
print("No package downloaded")
|
print("No package downloaded")
|
||||||
continue
|
continue
|
||||||
if not unpack_package(work_path, tgz):
|
skip_files = None
|
||||||
|
if package.find('/qtcreator/') > 0:
|
||||||
|
# macro_pounder_fn.c is a preprocessor torture test that takes time to finish
|
||||||
|
skip_files = ('macro_pounder_fn.c',)
|
||||||
|
if not unpack_package(work_path, tgz, skip_files=skip_files):
|
||||||
print("No files to process")
|
print("No files to process")
|
||||||
continue
|
continue
|
||||||
crash = False
|
crash = False
|
||||||
|
|
|
@ -15,7 +15,7 @@ import shlex
|
||||||
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
|
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
|
||||||
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
|
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
|
||||||
# changes)
|
# changes)
|
||||||
CLIENT_VERSION = "1.3.23"
|
CLIENT_VERSION = "1.3.24"
|
||||||
|
|
||||||
# Timeout for analysis with Cppcheck in seconds
|
# Timeout for analysis with Cppcheck in seconds
|
||||||
CPPCHECK_TIMEOUT = 30 * 60
|
CPPCHECK_TIMEOUT = 30 * 60
|
||||||
|
@ -234,7 +234,7 @@ def download_package(work_path, package, bandwidth_limit):
|
||||||
return destfile
|
return destfile
|
||||||
|
|
||||||
|
|
||||||
def unpack_package(work_path, tgz, cpp_only=False):
|
def unpack_package(work_path, tgz, cpp_only=False, skip_files=None):
|
||||||
print('Unpacking..')
|
print('Unpacking..')
|
||||||
temp_path = os.path.join(work_path, 'temp')
|
temp_path = os.path.join(work_path, 'temp')
|
||||||
__remove_tree(temp_path)
|
__remove_tree(temp_path)
|
||||||
|
@ -252,6 +252,14 @@ def unpack_package(work_path, tgz, cpp_only=False):
|
||||||
# Skip dangerous file names
|
# Skip dangerous file names
|
||||||
continue
|
continue
|
||||||
elif member.name.lower().endswith(header_endings + source_endings):
|
elif member.name.lower().endswith(header_endings + source_endings):
|
||||||
|
if skip_files is not None:
|
||||||
|
skip = False
|
||||||
|
for skip_file in skip_files:
|
||||||
|
if member.name.endswith('/' + skip_file):
|
||||||
|
skip = True
|
||||||
|
break
|
||||||
|
if skip:
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
tf.extract(member.name, temp_path)
|
tf.extract(member.name, temp_path)
|
||||||
if member.name.lower().endswith(source_endings):
|
if member.name.lower().endswith(source_endings):
|
||||||
|
|
Loading…
Reference in New Issue