From ba64fa387a66993e66b7767294793b1b9a6e6f0c Mon Sep 17 00:00:00 2001 From: Erika Hunhoff Date: Thu, 1 Aug 2024 16:01:59 -0600 Subject: [PATCH] clean up lit config imports --- programming_examples/lit.cfg.py | 9 +-------- test/lit.cfg.py | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/programming_examples/lit.cfg.py b/programming_examples/lit.cfg.py index eaeda668d..a90509d46 100644 --- a/programming_examples/lit.cfg.py +++ b/programming_examples/lit.cfg.py @@ -7,17 +7,14 @@ # -*- Python -*- import os -import platform import re import subprocess -import tempfile +import shutil import lit.formats import lit.util from lit.llvm import llvm_config -from lit.llvm.subst import ToolSubst -from lit.llvm.subst import FindTool # Configuration file for the 'lit' test runner. @@ -125,12 +122,8 @@ # test if LM_LICENSE_FILE valid if config.enable_chess_tests: - import shutil - result = shutil.which("xchesscc") - import subprocess - if result != None: result = subprocess.run( ["xchesscc", "+v"], stdout=subprocess.PIPE, stderr=subprocess.PIPE diff --git a/test/lit.cfg.py b/test/lit.cfg.py index a3293ac44..d81510d1b 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -7,17 +7,14 @@ # -*- Python -*- import os -import platform import re +import shutil import subprocess -import tempfile import lit.formats import lit.util from lit.llvm import llvm_config -from lit.llvm.subst import ToolSubst -from lit.llvm.subst import FindTool # Configuration file for the 'lit' test runner. @@ -156,12 +153,8 @@ # test if LM_LICENSE_FILE valid if config.enable_chess_tests: - import shutil - result = shutil.which("xchesscc") - import subprocess - if result != None: result = subprocess.run( ["xchesscc", "+v"], stdout=subprocess.PIPE, stderr=subprocess.PIPE