bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

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
18e6d4
if [ "$centos_ver" -eq "8" ]; then
18e6d4
  t_Log "Package lynx not available in default repos on c8 => SKIP"
18e6d4
  exit 0
18e6d4
fi
18e6d4
18e6d4
c75df3
if [ "$SKIP_QA_HARNESS" = "1" ] ; then
efb756
  URL="http://mirror.centos.org/"
2789f9
  CHECK_FOR="timestamp"
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 $?