mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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:
parent
b0f4ae64c2
commit
f04b0db6d3
1 changed files with 4 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue