From f5d87a37ece8708735591f0d26213a6b7fd1a191 Mon Sep 17 00:00:00 2001 From: askeing Date: Sat, 23 Apr 2016 20:20:44 +0900 Subject: [PATCH 1/2] Put each unexpected dynamic symbols on its own line --- etc/ci/check_dynamic_symbols.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/ci/check_dynamic_symbols.py b/etc/ci/check_dynamic_symbols.py index 4f83a8b98aa..04bea851f46 100644 --- a/etc/ci/check_dynamic_symbols.py +++ b/etc/ci/check_dynamic_symbols.py @@ -29,6 +29,6 @@ for line in objdump_output: difference = actual_symbols - allowed_symbols if len(difference) > 0: - human_readable_difference = ", ".join(str(s) for s in difference) - print("Unexpected dynamic symbols in binary: {0}".format(human_readable_difference)) + human_readable_difference = "\n".join(str(s) for s in difference) + print("Unexpected dynamic symbols in binary:\n{0}".format(human_readable_difference)) sys.exit(-1) From 098a562b017caaf1020287bb18f6c8dcac038b0d Mon Sep 17 00:00:00 2001 From: askeing Date: Tue, 26 Apr 2016 01:39:04 +0900 Subject: [PATCH 2/2] Adding absolute_import to check_dynamic_symbols.py --- etc/ci/check_dynamic_symbols.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/ci/check_dynamic_symbols.py b/etc/ci/check_dynamic_symbols.py index 04bea851f46..50b5052a542 100644 --- a/etc/ci/check_dynamic_symbols.py +++ b/etc/ci/check_dynamic_symbols.py @@ -7,6 +7,8 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. +from __future__ import absolute_import, print_function + import sys import re import subprocess