taking care of the result
authorStefan Schubert <schubi@suse.de>
Wed, 11 Jan 2006 09:27:46 +0000 (09:27 +0000)
committerStefan Schubert <schubi@suse.de>
Wed, 11 Jan 2006 09:27:46 +0000 (09:27 +0000)
zypp/solver/testsuite/lib/solver_init.exp

index 85ce776..9ef2d54 100644 (file)
@@ -158,7 +158,8 @@ proc multi-run { src } {
              continue
          }
 
-         exec sh -c "/usr/bin/fgrep \'>!>\' $outfile >$outfilegrep"
+         set command "/usr/bin/fgrep \'>!>\' $outfile >$outfilegrep"
+         set oops [catch { set result [exec sh -c $command] } catched]
 
          if { [ file exists $refoutfile ] == 0 } {
              perror "Missing file $refoutfile" 0