From d0849b6fdde45bd078d980030f5c074d3f55a7d1 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Mon, 26 Mar 2018 20:23:23 +0000 Subject: [PATCH] tahoe-lafs: run tests --- .../networking/p2p/tahoe-lafs/default.nix | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix index cc5229bcd44..8c0c4a6c566 100644 --- a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix +++ b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix @@ -17,7 +17,7 @@ pythonPackages.buildPythonApplication rec { outputs = [ "out" "doc" "info" ]; - patchPhase = '' + postPatch = '' sed -i "src/allmydata/util/iputil.py" \ -es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g" @@ -32,6 +32,22 @@ pythonPackages.buildPythonApplication rec { sed -i 's/"pycrypto.*"/"pycrypto"/' src/allmydata/_auto_deps.py ''; + # Remove broken and expensive tests. + preConfigure = '' + ( + cd src/allmydata/test + + # Buggy? + rm cli/test_create.py test_backupdb.py + + # These require Tor and I2P. + rm test_connections.py test_iputil.py test_hung_server.py test_i2p_provider.py test_tor_provider.py + + # Expensive + rm test_system.py + ) + ''; + nativeBuildInputs = with pythonPackages; [ sphinx texinfo ]; buildInputs = with pythonPackages; [ unzip numpy mock ]; @@ -59,8 +75,7 @@ pythonPackages.buildPythonApplication rec { ''; checkPhase = '' - # Still broken. ~ C. - # trial allmydata + trial --rterrors allmydata ''; meta = {