Skip to content
Success

Console Output

Started by user rbudiard
Building on master in workspace /var/lib/jenkins/workspace/TestSSH
executing script:
SW_CONFIG="/scratch/system/bwjenkins/sw_config"
SW_ROOT="/scratch/system/bwjenkins/tests"
PATH="/sw/tools/bin:/sw/tools/bin:$PATH"

echo $SW_CONFIG
echo $SW_ROOT
echo $PATH
pwd
hostname
which swtestwait
cat `which swtestwait`

/scratch/system/bwjenkins/sw_config
/scratch/system/bwjenkins/tests
/sw/tools/bin:/sw/tools/bin:/sw/xe/darshan/2.3.1/darshan-2.3.1/bin:/sw/user/scripts:/sw/admin/scripts:/sw/xe6_cle5.2_pe2015-09/xalt/0.7.1/sles11.3/libexec:/sw/xe6_cle5.2_pe2015-09/xalt/0.7.1/sles11.3/bin:/usr/local/gsi-openssh-6.2p2-2/bin:/opt/java/jdk1.8.0_51/bin:/usr/local/globus-5.2.5/bin:/usr/local/globus-5.2.5/sbin:/opt/cray/mpt/7.3.3/gni/bin:/opt/torque/6.0.1-end/sbin:/opt/torque/6.0.1-end/bin:/opt/moab/9.0.1/sbin:/opt/cray/rca/1.0.0-2.0502.60530.1.63.gem/bin:/opt/cray/pmi/5.0.10-1.0000.11050.179.3.gem/bin:/opt/cray/craype/2.5.4/bin:/opt/cray/cce/8.4.6/cray-binutils/x86_64-unknown-linux-gnu/bin:/opt/cray/cce/8.4.6/craylibs/x86-64/bin:/opt/cray/cce/8.4.6/cftn/bin:/opt/cray/cce/8.4.6/CC/bin:/opt/cray/llm/default/bin:/opt/cray/llm/default/etc:/opt/cray/xpmem/0.1-2.0502.64982.5.3.gem/bin:/opt/cray/ugni/6.0-1.0502.10863.8.28.gem/bin:/opt/cray/udreg/2.3.2-1.0502.10518.2.17.gem/bin:/opt/cray/lustre-cray_gem_s/2.5_3.0.101_0.46.1_1.0502.8871.17.1-1.0502.21379.10.1/sbin:/opt/cray/lustre-cray_gem_s/2.5_3.0.101_0.46.1_1.0502.8871.17.1-1.0502.21379.10.1/bin:/opt/cray/alps/5.2.4-2.0502.9774.31.12.gem/sbin:/opt/cray/alps/5.2.4-2.0502.9774.31.12.gem/bin:/opt/cray/sdb/1.1-1.0502.63652.4.27.gem/bin:/opt/cray/nodestat/2.2-1.0502.60539.1.31.gem/bin:/opt/modules/3.2.10.4/bin:/opt/moab/9.0.1/bin:/u/system/bwjenkins/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:.:/usr/lib/qt3/bin:/opt/cray/bin
/mnt/abc/u/system/bwjenkins
jyc1
/sw/tools/bin/swtestwait
#!/bin/bash

realpath=`readlink -f .`
build=`basename $realpath`

version_dir=`dirname $realpath`
version=`basename $version_dir`

app_dir=`dirname $version_dir`
app=`basename $app_dir`

swtest -a $app -v $version -b $build &> test.log

#-- grep line whose first word is number and assume that's the PBS jobid
if [ ! -e .running ]; then
  echo ".running file does not exist. Failing the test."
  exit -1
fi
jobid=$(grep "^\w[0-9]" .running)

#-- Infinite loop to wait until either $jobid runs or ceases to exist

while true; do

  qstat $jobid &> /dev/null
  
  #-- If job is missing for some reason, fail the test
  if [ $? -ne 0 ]; then
    echo "Job $jobid is missing or was deleted"
    echo "Failing this test "
    rm .running
    exit -2
  fi 
  
  job_state=$(qstat -f $jobid | grep job_state | awk '{print $3}')
  if [ "$job_state" == "R" ]; then
    echo "Submitted job $jobid is running. Following .running ... "
    break
  else
    echo "Waiting for job $jobid to start ... "
    sleep 10
  fi

done


#-- Start a subshell that check on the existence of .running file 
#   && $jobid and terminate when its done. Then we use that subshell PID 
#   with "tail" command to let tail follow the output of the test
(
while true; do
  qstat $jobid &> /dev/null
  if [ -e .running ] && [ $? -eq 0 ]; then
    sleep 30
  else
    break
  fi
done
) &

trackPID=$!
tail -f .running --pid=$trackPID

#-- Display whatever got recorded to test.log and status file
echo "Displaying test.log:"
cat test.log

echo "Displaying status file:"
cat status

#-- Check status file, if the file does not exist, or the first line is not
#   "verified", fail the test
if [ -e status ]; then
  status_str=$(head -n 1 status)
  if [ $status_str == "verified" ]; then
    stat=0
  else
    stat=-1
  fi
else
  stat=-1
fi

exit $stat
[SSH] exit-status: 0
executing script:
SW_CONFIG="/scratch/system/bwjenkins/sw_config"
SW_ROOT="/scratch/system/bwjenkins/tests"
PATH="/sw/tools/bin:/sw/tools/bin:$PATH"

echo $SW_CONFIG
echo $SW_ROOT
echo $PATH
pwd
hostname

/scratch/system/bwjenkins/sw_config
/scratch/system/bwjenkins/tests
/sw/tools/bin:/sw/tools/bin:/sw/xe_xk_cle5.2UP02_pe2.3.0/xalt/0.7.1/sles11.3/libexec:/sw/xe_xk_cle5.2UP02_pe2.3.0/xalt/0.7.1/sles11.3/bin:/sw/admin/scripts:/sw/user/scripts:/sw/xe/darshan/2.3.0/darshan-2.3.0_cle52/bin:/usr/local/gsi-openssh-6.2p2-2/bin:/opt/java/jdk1.8.0_51/bin:/usr/local/globus-5.2.5/bin:/usr/local/globus-5.2.5/sbin:/opt/moab/9.0.0/sbin:/opt/torque/6.0.1-end/sbin:/opt/torque/6.0.1-end/bin:/opt/cray/mpt/7.3.0/gni/bin:/opt/cray/rca/1.0.0-2.0502.60530.1.63.gem/bin:/opt/cray/alps/5.2.4-2.0502.9774.31.12.gem/sbin:/opt/cray/dvs/2.5_0.9.0-1.0502.2188.1.113.gem/bin:/opt/cray/xpmem/0.1-2.0502.64982.5.3.gem/bin:/opt/cray/pmi/5.0.10-1.0000.11050.179.3.gem/bin:/opt/cray/ugni/6.0-1.0502.10863.8.28.gem/bin:/opt/cray/udreg/2.3.2-1.0502.10518.2.17.gem/bin:/opt/cray/craype/2.5.0/bin:/opt/cray/cce/8.4.2/cray-binutils/x86_64-unknown-linux-gnu/bin:/opt/cray/cce/8.4.2/craylibs/x86-64/bin:/opt/cray/cce/8.4.2/cftn/bin:/opt/cray/cce/8.4.2/CC/bin:/opt/cray/eslogin/eswrap/1.1.0-1.020200.1231.0/bin:/opt/modules/3.2.10.3/bin:/opt/moab/9.0.0/bin:/u/system/bwjenkins/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/opt/cray/bin
/mnt/a/u/system/bwjenkins
h2ologin3
[SSH] exit-status: 0
[TestSSH] $ /bin/sh -xe /tmp/hudson7488531626145581750.sh
+ echo 'Helloworld 49'
+ rsync -a -e ssh TestOutput.txt BW_REMOTE:.

Access by OTP or Two Factor Certificate Authority only.
Use myproxy-logon -s tfca.ncsa.illinois.edu -p 7512 for gsissh access.
gsissh or ssh -o PreferredAuthentications=keyboard-interactive for otp access.

+ rsync -a -e ssh TestOutput.txt JYC_REMOTE:.
NCSA JYC System 
Access status: User Access UnRestricted.

Access by OTP or Two Factor Certificate Authority only.
Use myproxy-logon -s tfca.ncsa.illinois.edu -p 7512 for gsissh access.
gsissh or ssh -o PreferredAuthentications=keyboard-interactive for otp access.

Finished: SUCCESS