From 87d2362396c57cdfc6bacc0c18ff7343add2eb7a Mon Sep 17 00:00:00 2001 From: Laura Barcziova Date: Wed, 6 Nov 2024 15:31:29 +0100 Subject: [PATCH] [OSH testing] add test script --- fedora/python-ogr.spec | 3 +++ test-for-scan-failure.sh | 5 +++++ 2 files changed, 8 insertions(+) create mode 100755 test-for-scan-failure.sh diff --git a/fedora/python-ogr.spec b/fedora/python-ogr.spec index 349a4477..ad56a330 100644 --- a/fedora/python-ogr.spec +++ b/fedora/python-ogr.spec @@ -38,6 +38,8 @@ One Git library to Rule! %pyproject_install %pyproject_save_files ogr +mkdir -p %{buildroot}%{_bindir} +install -m 755 test-for-scan-failure.sh %{buildroot}%{_bindir}/test-for-scan-failure.sh %files -n python3-ogr -f %{pyproject_files} # Epel9 does not tag the license file in pyproject_files as a license. Manually install it in this case @@ -45,6 +47,7 @@ One Git library to Rule! %license LICENSE %endif %doc README.md +%{_bindir}/test-for-scan-failure.sh %changelog diff --git a/test-for-scan-failure.sh b/test-for-scan-failure.sh new file mode 100755 index 00000000..6db3dfd6 --- /dev/null +++ b/test-for-scan-failure.sh @@ -0,0 +1,5 @@ +#!/bin/sh +foo=bar +if [[ -z foo ]]; then + echo $foo +fi