nixos/test: some test fixes in succession of #125992

This commit is contained in:
David Arnold 2021-08-20 12:58:49 -05:00
parent 3efbe3863a
commit 2832896c5b
No known key found for this signature in database
GPG Key ID: AB15A6AF1101390D
2 changed files with 3 additions and 0 deletions

View File

@ -994,8 +994,10 @@ def _test_symbols() -> Dict[str, Any]:
subtest=subtest,
run_tests=run_tests,
join_all=join_all,
retry=retry,
serial_stdout_off=serial_stdout_off,
serial_stdout_on=serial_stdout_on,
Machine=Machine, # for typing
)
return general_symbols

View File

@ -85,6 +85,7 @@ in import ./make-test-python.nix ({ pkgs, ...} : {
self = clientv4 if type == 4 else clientv6
out = self.succeed(f"host -{type} -t {rr} {query}").rstrip()
self.log(f"output: {out}")
import re
assert re.search(
expected, out
), f"DNS IPv{type} query on {query} gave '{out}' instead of '{expected}'"