Skip to content

Commit ff925a5

Browse files
committed
ci: exclude all the tests covering the code in Python mostly
Signed-off-by: Evgeny Vereshchagin <[email protected]>
1 parent 376de9b commit ff925a5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/run_tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
EXPLICIT_MAKE_VARS="DEBUG=1"
9494
elif [ "${{ matrix.python-ruby-version.other }}" = "sanitizers" ] ; then
9595
sanitizers='-fsanitize=address,undefined'
96-
EXPLICIT_MAKE_VARS="CFLAGS='-g -I$DESTDIR/usr/include $sanitizers' LDFLAGS='-L$DESTDIR/usr/lib $sanitizers' LDLIBS= CPPFLAGS="
96+
EXPLICIT_MAKE_VARS="CFLAGS='-g -I$DESTDIR/usr/include $sanitizers' LDFLAGS='-L$DESTDIR/usr/lib $sanitizers' LDLIBS= CPPFLAGS= OPT_SUBDIRS="
9797
echo "ASAN_OPTIONS=detect_leaks=0" >> $GITHUB_ENV
9898
echo "UBSAN_OPTIONS=print_stacktrace=1:print_summary=1" >> $GITHUB_ENV
9999
else
@@ -176,10 +176,12 @@ jobs:
176176
echo "::endgroup::"
177177
178178
# Test Python and Ruby wrappers
179-
echo "::group::Test Python and Ruby wrappers"
180-
$PYTHON -c 'import selinux;import selinux.audit2why;import semanage;print(selinux.is_selinux_enabled())'
181-
$RUBY -e 'require "selinux";require "semanage";puts Selinux::is_selinux_enabled()'
182-
echo "::endgroup::"
179+
if [ "${{ matrix.python-ruby-version.other }}" != "sanitizers" ] ; then
180+
echo "::group::Test Python and Ruby wrappers"
181+
$PYTHON -c 'import selinux;import selinux.audit2why;import semanage;print(selinux.is_selinux_enabled())'
182+
$RUBY -e 'require "selinux";require "semanage";puts Selinux::is_selinux_enabled()'
183+
echo "::endgroup::"
184+
fi
183185
184186
# Run Python linter, but not on the downloaded refpolicy
185187
echo "::group::scripts/run-flake8"

0 commit comments

Comments
 (0)