python-pyparted: Fix test cases for 32bit systems.

Fixes http://hydra.nixos.org/build/5425941

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-06-24 12:36:44 +02:00
parent b0f4ae64c2
commit f04b0db6d3
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -3753,6 +3753,10 @@ pythonPackages = python.modules // rec {
sed -i -e '
s|e\.path\.startswith("/tmp/temp-device-")|"temp-device-" in e.path|
' tests/test__ped_ped.py
'' + pkgs.lib.optionalString stdenv.isi686 ''
# remove some integers in this test case which overflow on 32bit systems
sed -i -r -e '/class *UnitGetSizeTestCase/,/^$/{/[0-9]{11}/d}' \
tests/test__ped_ped.py
'';
preConfigure = ''