avocado-framework/avocado

View on GitHub
selftests/unit/utils/test_process.py

Summary

Maintainability
D
1 day
Test Coverage

Function call with shell=True parameter identified, possible security issue.
Open

        p = process.run(cmd="ls -l", sudo=True, shell=True, ignore_status=True)
Severity: Minor
Found in selftests/unit/utils/test_process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

        p = process.SubProcess(cmd="ls -l", sudo=True, shell=True)
Severity: Minor
Found in selftests/unit/utils/test_process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

        p = process.run(cmd="ls -l", sudo=True, shell=True, ignore_status=True)
Severity: Minor
Found in selftests/unit/utils/test_process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

        p = process.SubProcess(cmd="ls -l", sudo=True, shell=True)
Severity: Minor
Found in selftests/unit/utils/test_process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

        p = process.run(cmd="ls -l", sudo=True, shell=True, ignore_status=True)
Severity: Minor
Found in selftests/unit/utils/test_process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

        p = process.SubProcess(cmd="ls -l", sudo=True, shell=True)
Severity: Minor
Found in selftests/unit/utils/test_process.py by bandit

File test_process.py has 687 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import io
import logging
import os
import sys
import time
Severity: Major
Found in selftests/unit/utils/test_process.py - About 1 day to fix

    Function test_kill_process_tree_timeout_3s has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def test_kill_process_tree_timeout_3s(
    Severity: Minor
    Found in selftests/unit/utils/test_process.py - About 45 mins to fix

      Function test_kill_process_tree_dont_timeout_3s has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def test_kill_process_tree_dont_timeout_3s(
      Severity: Minor
      Found in selftests/unit/utils/test_process.py - About 45 mins to fix

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

            def test_send_signal_sudo_enabled(self, run, get_children, get_pid, sudo, _):
        Severity: Minor
        Found in selftests/unit/utils/test_process.py - About 35 mins to fix

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

              def test_send_signal_sudo_enabled_with_exception(
          Severity: Minor
          Found in selftests/unit/utils/test_process.py - About 35 mins to fix

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

                def test_kill_process_tree_dont_timeout_infinity(
            Severity: Minor
            Found in selftests/unit/utils/test_process.py - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status