From ebaf26b75c6ab3185b6e098e9caf575c03085f82 Mon Sep 17 00:00:00 2001 From: Thomas Miedema Date: Sat, 18 Jun 2016 18:58:02 +0200 Subject: Testsuite: delete dead code + cleanup * Set config settings directly in mk/test.mk, instead of indirectly in config/ghc * passing --hpcdir for WAY=hpc is unnecessary --- testsuite/driver/testutil.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'testsuite/driver/testutil.py') diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py index 563ba3646c..2862a44305 100644 --- a/testsuite/driver/testutil.py +++ b/testsuite/driver/testutil.py @@ -1,26 +1,8 @@ -# ----------------------------------------------------------------------------- -# Utils - import errno import os import subprocess import shutil -def version_to_ints(v): - return [ int(x) for x in v.split('.') ] - -def version_lt(x, y): - return version_to_ints(x) < version_to_ints(y) - -def version_le(x, y): - return version_to_ints(x) <= version_to_ints(y) - -def version_gt(x, y): - return version_to_ints(x) > version_to_ints(y) - -def version_ge(x, y): - return version_to_ints(x) >= version_to_ints(y) - def strip_quotes(s): # Don't wrap commands to subprocess.call/Popen in quotes. return s.strip('\'"') -- cgit v1.2.1