Skip to content

Commit 009412f

Browse files
test: Update
1 parent 3b65292 commit 009412f

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

test/test-utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
USERNAME=${1:-codespace}
3+
USERNAME=${1:-$(id -un)}
44
ID_OS=$(grep '^ID=' </etc/os-release | cut -d '=' -f2)
55
FAILED_COUNT=0
66

test/test.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SCRIPT_FOLDER_NAME=$(dirname $0)
44
cd ${SCRIPT_FOLDER_NAME} || exit
55

66
# shellcheck source=/dev/null
7-
source test-utils.sh codespace
7+
source test-utils.sh
88

99
if [ "${ID_OS}" = "ubuntu" ]; then
1010
package_list_debian="apt-utils \
@@ -35,17 +35,5 @@ check "shfmt" shfmt --version
3535
check "shellcheck" shellcheck --version
3636
check "editorconfig" ec --version
3737
check "trivy" trivy --version
38-
if [ "${ID_OS}" = "ubuntu" ]; then
39-
python_system_package_list_debian="python3 \
40-
python3-dev \
41-
python3-pip \
42-
python3-venv"
43-
checkOSPackages "python-system-packages" ${python_system_package_list_debian}
44-
fi
45-
check "python" python --version
46-
check "python3" python3 --version
47-
check "python3 ascii art" python3 -c'from art import *; tprint("Python3")'
48-
check "python3 file" python3 "$(pwd)"/test.py
49-
check "pipx directory" [ -d "/usr/local/pipx/bin" ] && echo "Pipx directory Exists"
5038

5139
reportResults

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy