Unverified Commit 2b32dee3 authored by Sizhe Zhao's avatar Sizhe Zhao
Browse files

firewalld: remove testsuite

parent 367f4890
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -118,7 +118,11 @@ stdenv.mkDerivation rec {
    ./autogen.sh
  '';

  postInstall = lib.optionalString (!withGui) ''
  postInstall =
    ''
      rm -r $out/share/firewalld/testsuite
    ''
    + lib.optionalString (!withGui) ''
      rm $out/bin/firewall-{applet,config}
    '';

@@ -134,10 +138,9 @@ stdenv.mkDerivation rec {
    '';

  postFixup = ''
    chmod +x $out/share/firewalld/*.py $out/share/firewalld/testsuite/python/*.py $out/share/firewalld/testsuite/{,integration/}testsuite
    patchShebangs --host $out/share/firewalld/testsuite/{,integration/}testsuite $out/share/firewalld/*.py
    chmod +x $out/share/firewalld/*.py
    patchShebangs --host $out/share/firewalld/*.py
    wrapPythonProgramsIn "$out/bin" "$out ${pythonPath}"
    wrapPythonProgramsIn "$out/share/firewalld/testsuite/python" "$out ${pythonPath}"
  '';

  meta = {