diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 3a67e0629..82acf0e28 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -33,8 +33,6 @@ jobs: - name: Initialize buildozer in project folder run: | source .ci/osx_ci.sh - # Turn off warning that tests run as root. - echo "BUILDOZER_WARN_ON_ROOT=0" >> "$GITHUB_ENV" arm64_set_path_and_python_version ${{ matrix.python }} buildozer init - name: Install dependencies diff --git a/buildozer/commandline.py b/buildozer/commandline.py index 1066ac2d0..0caf46e9b 100644 --- a/buildozer/commandline.py +++ b/buildozer/commandline.py @@ -243,7 +243,7 @@ def _check_if_root_user(config): print( "\033[91mThis is \033[1mnot\033[0m \033[91mrecommended, and may lead to problems later.\033[0m" ) - + print(os.geteuid()) if not _get_user_permission(): sys.exit() diff --git a/tests/test_commandline.py b/tests/test_commandline.py index a37f1cace..e22092057 100644 --- a/tests/test_commandline.py +++ b/tests/test_commandline.py @@ -44,9 +44,7 @@ class CommandLineLocalTestCase(unittest.TestCase): # For those, this tests for the right behaviour. def setUp(self): - # We run as root, against recommendations, during testing. - # Turn off check. - os.environ["BUILDOZER_WARN_ON_ROOT"] = "0" + print("Running test as ", os.geteuid()) def test_version(self): output = cli_output("--version", 0)