]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Fixed test for OMK_ALL_SUBDIRS.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 2 Mar 2007 17:04:00 +0000 (17:04 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 2 Mar 2007 17:04:00 +0000 (17:04 +0000)
darcs-hash:20070302170442-f2ef6-865ddf6f5b36ff47004625749f686c1540981044.gz

tests/all_omk_subdirs/runtest

index 5566591894f5f77de68e096ecd902a99b3696e3a..a83c163c4a8ccd7ee5c8aed2a513e6654d1574b4 100755 (executable)
@@ -3,6 +3,9 @@
 . $OMK_TESTSROOT/functions.sh
 
 touch config.omk-default
-make | grep make-in-dir1 || exit 1 
-make | grep make-in-dir2 || exit 1 
-make | grep make-in-dir3 && exit 1 
+OUTPUT=$(make 2>&1) || canttest
+echo $OUTPUT | grep make-in-dir1 || error "Make was not called in dir1" 
+echo $OUTPUT | grep make-in-dir2 || error "Make was not called in dir2"
+echo $OUTPUT | grep make-in-dir3 && error "Make shouldn't be called in dir3" 
+
+exit 0