Blame tests/p_lynx/lynx_dump_page_test.sh
|
Athmane Madjoudj |
fa6d57 |
#!/bin/sh
|
|
Athmane Madjoudj |
fa6d57 |
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
Athmane Madjoudj |
fa6d57 |
|
|
Athmane Madjoudj |
fa6d57 |
t_Log "Running $0 - check that lynx can dump remote page."
|
|
Athmane Madjoudj |
fa6d57 |
|
|
Karanbir Singh |
23b6ba |
if [ $SKIP_QA_HARNESS -eq 1 ]; then
|
|
Athmane Madjoudj |
fa6d57 |
HOST=wiki.centos.org
|
|
Athmane Madjoudj |
fa6d57 |
CHECK_FOR="Page templates"
|
|
Athmane Madjoudj |
fa6d57 |
else
|
|
Athmane Madjoudj |
fa6d57 |
HOST=repo.centos.qa
|
|
Athmane Madjoudj |
fa6d57 |
CHECK_FOR="ks_cfg"
|
|
Athmane Madjoudj |
fa6d57 |
fi
|
|
Athmane Madjoudj |
fa6d57 |
|
|
Athmane Madjoudj |
fa6d57 |
lynx -dump http://${HOST}/qa/ | grep "${CHECK_FOR}" >/dev/null 2>&1
|
|
Athmane Madjoudj |
fa6d57 |
|
|
Athmane Madjoudj |
fa6d57 |
t_CheckExitStatus $?
|