avocado-framework/avocado

View on GitHub
selftests/functional/list.py

Summary

Maintainability
A
2 hrs
Test Coverage

Consider possible security implications associated with subprocess module.
Open

import subprocess
Severity: Info
Found in selftests/functional/list.py by bandit

subprocess call with shell=True identified, security issue.
Open

        test_process = subprocess.Popen(
            cmd_line,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            preexec_fn=os.setsid,
Severity: Major
Found in selftests/functional/list.py by bandit

File list.py has 253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import json
import os
import signal
import stat
import subprocess
Severity: Minor
Found in selftests/functional/list.py - About 2 hrs to fix

    Function _test has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def _test(self, name, content, exp_str, mode=MODE_0664, count=1):
    Severity: Minor
    Found in selftests/functional/list.py - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status