Merge pull request #131455 from primeos/nixos-tests-chromium

nixos/tests/chromium: Check the version and that it's an official build
This commit is contained in:
Michael Weiss 2021-07-25 12:38:33 +02:00 committed by GitHub
commit dcc6c7dfb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,6 +243,16 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
machine.wait_for_text("Graphics Feature Status")
with test_new_win("version_info", "chrome://version", "About Version") as clipboard:
filters = [
r"${chromiumPkg.version} \(Official Build",
]
if not all(
re.search(filter, clipboard) for filter in filters
):
assert False, "Version info not correct."
machine.shutdown()
'';
}) channelMap