mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixosTests.php.pcre: Clean up
And add assertion messages
This commit is contained in:
parent
aac9832b96
commit
b69556c580
1 changed files with 3 additions and 3 deletions
|
@ -30,8 +30,8 @@ in import ../make-test-python.nix ({ ...}: {
|
||||||
''
|
''
|
||||||
machine.wait_for_unit("httpd.service")
|
machine.wait_for_unit("httpd.service")
|
||||||
# Ensure php evaluation by matching on the var_dump syntax
|
# Ensure php evaluation by matching on the var_dump syntax
|
||||||
assert 'string(${toString (builtins.stringLength testString)}) "${testString}"' in machine.succeed(
|
response = machine.succeed("curl -vvv -s http://127.0.0.1:80/index.php")
|
||||||
"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."
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue