diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/check_build_completeness.py')
-rwxr-xr-x | meta/recipes-devtools/python/python3/check_build_completeness.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/check_build_completeness.py b/meta/recipes-devtools/python/python3/check_build_completeness.py new file mode 100755 index 0000000000..a1eace3f57 --- /dev/null +++ b/meta/recipes-devtools/python/python3/check_build_completeness.py | |||
@@ -0,0 +1,17 @@ | |||
1 | #!/usr/bin/env python3 | ||
2 | import sys | ||
3 | logfile = open(sys.argv[1]).read() | ||
4 | |||
5 | necessary_bits = logfile.find("The necessary bits to build these optional modules were not found") | ||
6 | to_find_bits = logfile.find("To find the necessary bits, look in setup.py in detect_modules() for the module's name.") | ||
7 | if necessary_bits != -1: | ||
8 | print("%s" %(logfile[necessary_bits:to_find_bits])) | ||
9 | |||
10 | failed_to_build = logfile.find("Failed to build these modules:") | ||
11 | if failed_to_build != -1: | ||
12 | failed_to_build_end = logfile.find("\n\n", failed_to_build) | ||
13 | print("%s" %(logfile[failed_to_build:failed_to_build_end])) | ||
14 | |||
15 | if necessary_bits != -1 or failed_to_build != -1: | ||
16 | sys.exit(1) | ||
17 | |||