BIND 10 master, updated. f80c824d8b1745a0cedbbb238b0e988f7acb10ee Don't fail with nonexistent files
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Aug 15 10:42:48 UTC 2013
The branch, master has been updated
via f80c824d8b1745a0cedbbb238b0e988f7acb10ee (commit)
from 2fbb93f713ace228c5d73fc38e2b3c53eb8cea1d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f80c824d8b1745a0cedbbb238b0e988f7acb10ee
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu Aug 15 08:43:26 2013 +0200
Don't fail with nonexistent files
When the script does not exist, because it was not generated due to some
configure switch or environmental condition, don't try to check if it
gets renamed. That would fail even when the situation is completely OK
and expected.
-----------------------------------------------------------------------
Summary of changes:
src/bin/tests/process_rename_test.py.in | 5 +++++
1 file changed, 5 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/tests/process_rename_test.py.in b/src/bin/tests/process_rename_test.py.in
index ea8ad87..7e6a9c9 100644
--- a/src/bin/tests/process_rename_test.py.in
+++ b/src/bin/tests/process_rename_test.py.in
@@ -25,6 +25,11 @@ class TestRename(unittest.TestCase):
def __scan(self, directory, script, fun):
# Scan one script if it contains call to the renaming function
filename = os.path.join(directory, script)
+ if not os.path.exists(filename):
+ # We either didn't compile it yet or it is not compiled based
+ # on some environmental condition. That is OK, we don't want
+ # to break on that.
+ return
with open(filename) as f:
data = ''.join(f.readlines())
prettyname = 'src' + filename[filename.rfind('../') + 2:]
More information about the bind10-changes
mailing list