Skip to content

Commit

Permalink
[Python] - Added one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravsaini04 committed Jan 29, 2024
1 parent 5e32193 commit 236d0b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions test/python/install_python310_setuptools_vulnerability.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ check "pytest" pytest --version
check "setuptools" pip list | grep setuptools

# Check paths in settings
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
check "current symlink works" /usr/local/python/current/bin/python --version
# check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
# check "current symlink works" /usr/local/python/current/bin/python --version
check "which autopep8" bash -c "which autopep8 | grep /usr/local/py-utils/bin/autopep8"
check "which black" bash -c "which black | grep /usr/local/py-utils/bin/black"
check "which yapf" bash -c "which yapf | grep /usr/local/py-utils/bin/yapf"
Expand Down Expand Up @@ -57,6 +57,8 @@ checkVulnerableDir()
fi
}

check "find test" bash -c "find . -name '*setuptools*'"

# only for 3.10
checkVulnerableDir "/usr/local/py-utils/shared/lib/python3.10/site-packages/setuptools-65.5.0.dist-info" "3.10"
checkVulnerableDir "/usr/local/python/3.10.13/lib/python3.10/site-packages/setuptools-65.5.0.dist-info" "3.10"
Expand Down
6 changes: 4 additions & 2 deletions test/python/install_python311_setuptools_vulnerability.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ check "pytest" pytest --version
check "setuptools" pip list | grep setuptools

# Check paths in settings
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
check "current symlink works" /usr/local/python/current/bin/python --version
# check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
# check "current symlink works" /usr/local/python/current/bin/python --version
check "which autopep8" bash -c "which autopep8 | grep /usr/local/py-utils/bin/autopep8"
check "which black" bash -c "which black | grep /usr/local/py-utils/bin/black"
check "which yapf" bash -c "which yapf | grep /usr/local/py-utils/bin/yapf"
Expand Down Expand Up @@ -57,6 +57,8 @@ checkVulnerableDir()
fi
}

check "find test" bash -c "find . -name '*setuptools*'"

# only for 3.10
checkVulnerableDir "/usr/local/py-utils/shared/lib/python3.10/site-packages/setuptools-65.5.0.dist-info" "3.10"
checkVulnerableDir "/usr/local/python/3.10.13/lib/python3.10/site-packages/setuptools-65.5.0.dist-info" "3.10"
Expand Down

0 comments on commit 236d0b3

Please sign in to comment.