Skip to content
Snippets Groups Projects
Commit b87236a1 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=13922

i=Nathan

skip 32a, 32b tests if MDS is remote
parent 0603d55f
No related branches found
No related tags found
No related merge requests found
...@@ -1094,6 +1094,9 @@ test_32a() { ...@@ -1094,6 +1094,9 @@ test_32a() {
# there appears to be a lot of assumption here about loopback # there appears to be a lot of assumption here about loopback
# devices # devices
# or maybe this test is just totally useless on a client-only system # or maybe this test is just totally useless on a client-only system
[ "$mds_HOST" = "`hostname`" ] || { skip "remote MDS" && return 0; }
[ "$ost1_HOST" = "`hostname`" ] || { skip "remote OST" && return 0; }
[ -z "$TUNEFS" ] && skip "No tunefs" && return [ -z "$TUNEFS" ] && skip "No tunefs" && return
local DISK1_4=$LUSTRE/tests/disk1_4.zip local DISK1_4=$LUSTRE/tests/disk1_4.zip
[ ! -r $DISK1_4 ] && skip "Cant find $DISK1_4, skipping" && return [ ! -r $DISK1_4 ] && skip "Cant find $DISK1_4, skipping" && return
...@@ -1154,6 +1157,9 @@ test_32b() { ...@@ -1154,6 +1157,9 @@ test_32b() {
# there appears to be a lot of assumption here about loopback # there appears to be a lot of assumption here about loopback
# devices # devices
# or maybe this test is just totally useless on a client-only system # or maybe this test is just totally useless on a client-only system
[ "$mds_HOST" = "`hostname`" ] || { skip "remote MDS" && return 0; }
[ "$ost1_HOST" = "`hostname`" ] || { skip "remote OST" && return 0; }
[ -z "$TUNEFS" ] && skip "No tunefs" && return [ -z "$TUNEFS" ] && skip "No tunefs" && return
local DISK1_4=$LUSTRE/tests/disk1_4.zip local DISK1_4=$LUSTRE/tests/disk1_4.zip
[ ! -r $DISK1_4 ] && skip "Cant find $DISK1_4, skipping" && return [ ! -r $DISK1_4 ] && skip "Cant find $DISK1_4, skipping" && return
......
...@@ -1000,7 +1000,7 @@ equals_msg() { ...@@ -1000,7 +1000,7 @@ equals_msg() {
local suffixlen=$((${#EQUALS} - ${#msg})) local suffixlen=$((${#EQUALS} - ${#msg}))
[ $suffixlen -lt 5 ] && suffixlen=5 [ $suffixlen -lt 5 ] && suffixlen=5
printf '===== %s %.*s\n' "$msg" $suffixlen $EQUALS log `echo $(printf '===== %s %.*s\n' "$msg" $suffixlen $EQUALS)`
} }
log() { log() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment