From c3f42e2ed5d74be4efefad829869fa1e03242c4d Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Apr 18 2023 11:44:17 +0000 Subject: Set COLUMNS for tests to handle different terminals --- diff --git a/tox.ini b/tox.ini index 69e4bda..e8d094c 100644 --- a/tox.ini +++ b/tox.ini @@ -24,9 +24,13 @@ sitepackages = true # from source setenv = RPM_PY_INSTALL_BIN=true + COLUMNS=80 # If rpm's python bindings are missing, don't continue # Also, because coverage might be installed system-wide and it serves as our # entry point, let's make sure it's installed in the virtualenv. +# +# COLUMNS setting is propagated to optparse and ensures that formatted text +# is same in the CLI output on all platforms commands_pre = {envbindir}/python -c "import rpm" pip install -I coverage