From b8a55531e466be52576f8ad68e85be03d486f093 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 20 Jun 2024 18:17:09 +0200 Subject: [PATCH] csmock: use `rpmbuild --without test ...` ... when execution of tests is not needed for the requested scan. This fixes an unnecessary failure while SAST scanning `jss-4.9.4-1.module+el8.7.0+15532+95bac9ee` Resolves: https://issues.redhat.com/browse/OSH-697 Closes: https://github.com/csutils/csmock/pull/175 --- py/csmock | 1 + 1 file changed, 1 insertion(+) diff --git a/py/csmock b/py/csmock index 386be42..8d2ecaa 100755 --- a/py/csmock +++ b/py/csmock @@ -74,6 +74,7 @@ DEFAULT_RPM_OPTS = [ NOCHECK_RPM_OPTS = [ "--define", "libguestfs_runtests 0", "--define", "runselftest 0", + "--without", "test", "--without", "testsuite"] RAWBUILD_RPM_OPTS = [