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
c75df3
if [ "$SKIP_QA_HARNESS" = "1" ] ; then
Athmane Madjoudj 165bfc
  URL="http://ci.dev.centos.org/cstatic/"
Athmane Madjoudj 165bfc
  CHECK_FOR="CentOS CI test page"
Athmane Madjoudj fa6d57
else
Athmane Madjoudj 165bfc
  URL="http://repo.centos.qa/qa/"
Athmane Madjoudj fa6d57
  CHECK_FOR="ks_cfg"
Athmane Madjoudj fa6d57
fi
Athmane Madjoudj fa6d57
Athmane Madjoudj 165bfc
lynx -dump ${URL} | grep "${CHECK_FOR}"  >/dev/null 2>&1
Athmane Madjoudj fa6d57
Athmane Madjoudj fa6d57
t_CheckExitStatus $?