aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-02-18 13:26:44 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-02-18 13:26:44 +0000
commit202c1bfcbd470955048ef03c60a83ddb7cddb4af (patch)
treeccb23bba5667482aafdbabb75914e78092d29b07
parentc0b6611b946410c389289e4b2dbd5d4a4716163c (diff)
downloadpaludis-202c1bfcbd470955048ef03c60a83ddb7cddb4af.tar.gz
paludis-202c1bfcbd470955048ef03c60a83ddb7cddb4af.tar.xz
Fix news_TEST.
-rwxr-xr-xhooks/news_TEST8
1 files changed, 4 insertions, 4 deletions
diff --git a/hooks/news_TEST b/hooks/news_TEST
index 08d5a07..4b77cf8 100755
--- a/hooks/news_TEST
+++ b/hooks/news_TEST
@@ -23,8 +23,8 @@ news_none_TEST()
export HOOK=sync_all_post
export PALUDIS_HOME=`pwd`/news_TEST_dir/one
- bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post >/dev/null ; test_return_code
- bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post \
+ bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post 2>/dev/null ; test_return_code
+ bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post 2>&1 \
| grep "No unread news items found" >/dev/null ; test_return_code
}
@@ -35,8 +35,8 @@ news_one_TEST()
export HOOK=sync_all_post
export PALUDIS_HOME=`pwd`/news_TEST_dir/two
- bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post >/dev/null ; test_return_code
- bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post \
+ bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post 2>/dev/null ; test_return_code
+ bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post 2>&1 \
| grep "You have 1 unread news item" >/dev/null ; test_return_code
}