From 86d14a5ab2dec0981b51cac8b2223bd29906a99b Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 24 Jun 2013 14:06:30 +0200 Subject: [PATCH] pykickstart: Run test cases in order of name. This should ensure the test casnes are always running in the same order, regardless of the target machine. We're just using the class name here, which should be sufficient enough to address the issue. Now the following build should be fixed: http://hydra.nixos.org/build/5425811 Big thanks to @rbvermaa for being a *really* great help debugging the problem quickly, because I couldn't reproduce it here (the run order of the test cases on my machine were 'accidentally' right). Signed-off-by: aszlig --- pkgs/top-level/python-packages.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 80d75d109d5..f0e74a0277f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3707,6 +3707,11 @@ pythonPackages = python.modules // rec { sha256 = "1sq68jvc39k9wrkcc4xlabhwi8gdz019yh2k5nrl7ya35b8daqw0"; }; + postPatch = '' + sed -i -e "s/for tst in tstList/for tst in sorted(tstList, \ + key=lambda m: m.__name__)/" tests/baseclass.py + ''; + propagatedBuildInputs = [ urlgrabber ]; checkPhase = ''