#!/bin/sh

set -ex

for py in $(py3versions -r 2>/dev/null); do
    echo "Testing with $py:"
    # Skip test_child_signal_sighup for Python 3 due to https://bugs.launchpad.net/bugs/1803731
    PYTHON=$py ostestr --regex 'oslo_service\.tests\.(?!(.*ServiceLauncherTest\.test_child_signal_sighup))'
    rm -rf .stestr
done
for py in $(pyversions -r 2>/dev/null); do
    echo "Testing with $py:"
    PYTHON=$py ostestr
    rm -rf .stestr
done
