nixosTests.php.pcre: Clean up

And add assertion messages
This commit is contained in:
Jan Tojnar 2020-04-16 23:19:45 +02:00
parent aac9832b96
commit b69556c580
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -30,8 +30,8 @@ in import ../make-test-python.nix ({ ...}: {
''
machine.wait_for_unit("httpd.service")
# Ensure php evaluation by matching on the var_dump syntax
assert 'string(${toString (builtins.stringLength testString)}) "${testString}"' in machine.succeed(
"curl -vvv -s http://127.0.0.1:80/index.php"
)
response = machine.succeed("curl -vvv -s http://127.0.0.1:80/index.php")
expected = 'string(${toString (builtins.stringLength testString)}) "${testString}"'
assert expected in response, "Does not appear to be able to use subgroups."
'';
})