From 227c9af1a4dde6609366a6a595dbaec2617f0c5f Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Aug 12 2016 20:20:53 +0000 Subject: Always run basic tests --- diff --git a/bash-completion.spec b/bash-completion.spec index 9030d73..fb93dfb 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -61,10 +61,10 @@ install -Dpm 644 redefine_filedir \ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/{cowsay,cowthink} -%if %{with tests} %check # For some tests involving non-ASCII filenames export LANG=en_US.UTF-8 +%if %{with tests} # This stuff borrowed from dejagnu-1.4.4-17 (tests need a terminal) tmpfile=$(mktemp) screen -D -m sh -c '( make check ; echo $? ) >'$tmpfile @@ -72,6 +72,8 @@ cat $tmpfile result=$(tail -n 1 $tmpfile) rm -f $tmpfile exit $result +%else +make -C completions check %endif