Skip to content

Commit

Permalink
Make use test scripts check if emerge failed with REQUIRED_USE not sa…
Browse files Browse the repository at this point in the history
…tisfied
  • Loading branch information
tom111 committed Nov 2, 2012
1 parent 676c12b commit 791d021
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/use-snippet
@@ -1,4 +1,8 @@
if @@USE@@ @@FEATURES@@ emerge -1 @@EMERGEOPTS@@ @@CPV@@ ; then
eout=$( @@USE@@ @@FEATURES@@ emerge -1 @@EMERGEOPTS@@ @@CPV@@ 2>&1 1>/dev/tty )
if [[ $? == 0 ]] ; then
echo "@@USE@@ @@FEATURES@@ succeeded for @@CPV@@" >> @@REPORTFILE@@;
else echo "@@USE@@ @@FEATURES@@ failed for @@CPV@@" >> @@REPORTFILE@@;
elif [[ "${eout}" =~ REQUIRED_USE ]] ; then
echo "@@USE@@ : REQUIRED_USE not satisfied (probably)" >> @@REPORTFILE@@;
else
echo "@@USE@@ @@FEATURES@@ failed for @@CPV@@" >> @@REPORTFILE@@;
fi;

0 comments on commit 791d021

Please sign in to comment.