misc cleanup (#84)

* remove inline pylint

* cspell

* pylint import

* pylint flac

* pylint ycruncher
This commit is contained in:
derek-hirotsu
2023-11-23 15:35:21 -08:00
committed by GitHub
parent 4a65dcab64
commit eae9e75018
17 changed files with 29 additions and 64 deletions

View File

@@ -9,10 +9,8 @@ from subprocess import Popen
sys.path.insert(1, os.path.join(sys.path[0], ".."))
# pylint: disable=wrong-import-position
from ycruncher_utils import YCRUNCHER_FOLDER_NAME, download_ycruncher, ycruncher_folder_exists
ABS_EXECUTABLE_PATH = os.path.join(os.path.dirname(
os.path.realpath(__file__)), YCRUNCHER_FOLDER_NAME, "y-cruncher.exe")
@@ -42,8 +40,8 @@ arg_string = ['skip-warnings', 'bench', '5b', '-o',
os.path.join(os.path.dirname(os.path.realpath(__file__)), 'run')]
logging.info(arg_string)
process = Popen(executable=command, args=arg_string)
EXIT_CODE = process.wait()
with Popen(executable=command, args=arg_string) as process:
EXIT_CODE = process.wait()
if EXIT_CODE > 0:
logging.error("Test failed!")