From: Matthijs Mekking Date: Thu, 16 Apr 2020 06:56:02 +0000 (+0200) Subject: Fix digdelv test X-Git-Tag: v9.17.2~144^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=464d0417d1b244d176c80d6396a03047808a06a0;p=thirdparty%2Fbind9.git Fix digdelv test The yamlget.py file was changed in !3311 as part of making the python code pylint and flake8 compliant. This omitted setting 'item' to 'item[key]' which caused the digdelv yaml tests to fail. Also, the pretty printing is not really necessary, so remove the "if key not in item; print error" logic. --- diff --git a/bin/tests/system/digdelv/yamlget.py b/bin/tests/system/digdelv/yamlget.py index 24f457b7b16..5e35c5658aa 100644 --- a/bin/tests/system/digdelv/yamlget.py +++ b/bin/tests/system/digdelv/yamlget.py @@ -24,7 +24,7 @@ with open(sys.argv[1], "r") as f: key = int(key) except ValueError: pass - if key not in item: - print('error: index not found') - sys.exit(1) + + item = item[key] + print(item)