mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-03 17:31:42 +00:00
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:
parent
dc77ef9e52
commit
c10ac227cc
@ -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 *
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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/'
|
||||||
|
@ -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:']
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user