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 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'))
import lxml.etree
from acpi_const import *

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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