mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
convos: fix tests
- Patch for time() dependent test started to fail after 1594263232. - Patch for disk space test that fails on zfs.
This commit is contained in:
parent
ceb1527a61
commit
0c21a99a1a
@ -32,16 +32,26 @@ perlPackages.buildPerlPackage rec {
|
|||||||
patchShebangs script/convos
|
patchShebangs script/convos
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# A test fails since gethostbyaddr(127.0.0.1) fails to resolve to localhost in
|
|
||||||
# the sandbox, we replace the this out from a substitution expression
|
|
||||||
#
|
|
||||||
# Module::Install is a runtime dependency not covered by the tests, so we add
|
|
||||||
# a test for it.
|
|
||||||
#
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
# A test fails since gethostbyaddr(127.0.0.1) fails to resolve to localhost in
|
||||||
|
# the sandbox, we replace the this out from a substitution expression
|
||||||
|
#
|
||||||
substituteInPlace t/web-register-open-to-public.t \
|
substituteInPlace t/web-register-open-to-public.t \
|
||||||
--replace '!127.0.0.1!' '!localhost!'
|
--replace '!127.0.0.1!' '!localhost!'
|
||||||
|
|
||||||
|
# Time-impurity in test, (fixed in master)
|
||||||
|
#
|
||||||
|
substituteInPlace t/web-load-user.t \
|
||||||
|
--replace '400' '410'
|
||||||
|
|
||||||
|
# Disk-space check fails on zfs, (fixed in master)
|
||||||
|
#
|
||||||
|
substituteInPlace t/web-admin.t \
|
||||||
|
--replace 'qr{/dev/}' 'qr{\w}'
|
||||||
|
|
||||||
|
# Module::Install is a runtime dependency not covered by the tests, so we add
|
||||||
|
# a test for it.
|
||||||
|
#
|
||||||
echo "use Test::More tests => 1;require_ok('Module::Install')" \
|
echo "use Test::More tests => 1;require_ok('Module::Install')" \
|
||||||
> t/00_nixpkgs_module_install.t
|
> t/00_nixpkgs_module_install.t
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user