Package: openstack-pkg-tools
Version: 88
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu disco ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * pkgos-dh_auto_test: Add support for --no-py36.


Thanks for considering the patch.


-- System Information:
Debian Release: buster/sid
  APT prefers disco
  APT policy: (500, 'disco'), (500, 'cosmic-security'), (500, 'bionic-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-10-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru openstack-pkg-tools-88/build-tools/pkgos-dh_auto_test 
openstack-pkg-tools-88ubuntu1/build-tools/pkgos-dh_auto_test
--- openstack-pkg-tools-88/build-tools/pkgos-dh_auto_test       2018-10-31 
05:20:44.000000000 -0400
+++ openstack-pkg-tools-88ubuntu1/build-tools/pkgos-dh_auto_test        
2018-11-08 09:58:29.000000000 -0500
@@ -6,6 +6,7 @@
 # Config vars
 PKGOS_USE_PY2=yes
 PKGOS_USE_PY3=yes
+PKGOS_USE_PY36=yes
 PKGOS_TEST_PARALLEL=yes
 
 # Vars used in commands
@@ -23,10 +24,14 @@
                PKGOS_USE_PY2=no
                shift
                ;;
-        "--no-parallel")
-                PKGOS_TEST_PARALLEL=no
-                shift
-                ;;
+       "--no-py36")
+               PKGOS_USE_PY36=no
+               shift
+               ;;
+       "--no-parallel")
+               PKGOS_TEST_PARALLEL=no
+               shift
+               ;;
        *)
                ;;
        esac
@@ -37,6 +42,9 @@
 fi
 if [ "${PKGOS_USE_PY3}" = "yes" ] ; then
        PYTHON3S=$(py3versions -vr 2>/dev/null)
+       if [ "${PKGOS_USE_PY36}" = "no" ] ; then
+               PYTHON3S=$(echo "$PYTHON3S" | sed -r 's/3.6//g')
+       fi
 fi
 if [ "${PKGOS_TEST_PARALLEL}" = "no" ] ; then
        TEST_PARALLEL_OPT=""

Reply via email to