config-tools: remove unused package and add nosec to subprocess

The subprocess module is needed for calling package from python script.
Add #nosec for subprocess module importing.

Tracked-On: #6342
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
Yang,Yu-chu 2021-07-29 13:46:08 -07:00 committed by wenlingz
parent dc77ef9e52
commit c10ac227cc
10 changed files with 9 additions and 10 deletions

View File

@ -6,7 +6,8 @@
""" """
import logging import logging
import os, sys, subprocess, argparse, re, shutil import subprocess # nosec
import os, sys, argparse, re, shutil
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'board_inspector')) sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'board_inspector'))
import lxml.etree import lxml.etree
from acpi_const import * from acpi_const import *

View File

@ -5,7 +5,6 @@
import sys import sys
import enum import enum
import subprocess
import board_cfg_lib import board_cfg_lib
import common import common

View File

@ -7,7 +7,7 @@
import sys, os import sys, os
import logging import logging
import subprocess import subprocess # nosec
import lxml.etree import lxml.etree
import argparse import argparse
from importlib import import_module from importlib import import_module

View File

@ -6,7 +6,7 @@
"""Base classes and infrastructure for CPUID and MSR decoding""" """Base classes and infrastructure for CPUID and MSR decoding"""
from __future__ import print_function from __future__ import print_function
import subprocess import subprocess # nosec
import re import re
import functools import functools
import inspect import inspect

View File

@ -5,7 +5,7 @@
import os import os
import sys import sys
import subprocess import subprocess # nosec
import shutil import shutil
from collections import defaultdict from collections import defaultdict
import dmar import dmar

View File

@ -7,7 +7,7 @@ import os
import sys import sys
import shutil import shutil
import argparse import argparse
import subprocess import subprocess # nosec
import pci_dev import pci_dev
import dmi import dmi
import acpi import acpi

View File

@ -4,7 +4,6 @@
# #
import parser_lib import parser_lib
import subprocess
MEM_PATH = ['/proc/iomem', '/proc/meminfo'] MEM_PATH = ['/proc/iomem', '/proc/meminfo']
TTY_PATH = '/sys/class/tty/' TTY_PATH = '/sys/class/tty/'

View File

@ -4,7 +4,7 @@
# #
import os import os
import subprocess import subprocess # nosec
BIOS_INFO_KEY = ['BIOS Information', 'Vendor:', 'Version:', 'Release Date:', 'BIOS Revision:'] BIOS_INFO_KEY = ['BIOS Information', 'Vendor:', 'Version:', 'Release Date:', 'BIOS Revision:']

View File

@ -4,7 +4,7 @@
# #
import sys import sys
import subprocess import subprocess # nosec
import board_cfg_lib, scenario_cfg_lib import board_cfg_lib, scenario_cfg_lib
import hv_cfg_lib import hv_cfg_lib
import common import common

View File

@ -7,7 +7,7 @@ import os
import sys import sys
import getopt import getopt
import shutil import shutil
import subprocess import subprocess # nosec
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
import re import re
import lxml import lxml