summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1cba003)
Lot of code was moved in do_release_test(), but since it is not in a
loop anymore, continue are noop.
Replace them by returns.
Fixes:
1aee04806027c9496f5860a0dfcdbd4aafde148d ("SPEC-3484: create new application tests using new wgt types")
Change-Id: I1dcd7b389dd859d8aadb3608c6e5255d13a470b8
Bug-AGL: SPEC-3808
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
(cherry picked from commit
189cba49e3f230fe081a02efd08604ee8c6aa40e)
afm-util list --all > $LIST
if [ $? -ne 0 ];then
echo "ERROR: afm-util list exit with error"
afm-util list --all > $LIST
if [ $? -ne 0 ];then
echo "ERROR: afm-util list exit with error"
fi
if [ ! -s "$LIST" ];then
echo "ERROR: afm-util list is empty"
fi
if [ ! -s "$LIST" ];then
echo "ERROR: afm-util list is empty"
fi
echo "DEBUG: check presence of $WGTNAME"
fi
echo "DEBUG: check presence of $WGTNAME"
if [ $? -ne 0 ];then
echo "ERROR: afm-util install"
lava-test-case afm-util-install-$WGTNAMEF --result fail
if [ $? -ne 0 ];then
echo "ERROR: afm-util install"
lava-test-case afm-util-install-$WGTNAMEF --result fail
else
lava-test-case afm-util-install-$WGTNAMEF --result pass
fi
else
lava-test-case afm-util-install-$WGTNAMEF --result pass
fi
echo "DEBUG: ========== DUMPING output =========="
cat $OUT
echo "DEBUG: ========== END DUMP =========="
echo "DEBUG: ========== DUMPING output =========="
cat $OUT
echo "DEBUG: ========== END DUMP =========="
fi
echo "DEBUG: $WGTNAME is installed as $NAMEID"
afm-util list --all > $LIST
if [ $? -ne 0 ];then
echo "ERROR: afm-util list exit with error"
fi
echo "DEBUG: $WGTNAME is installed as $NAMEID"
afm-util list --all > $LIST
if [ $? -ne 0 ];then
echo "ERROR: afm-util list exit with error"
fi
if [ ! -s "$LIST" ];then
echo "ERROR: afm-util list is empty"
fi
if [ ! -s "$LIST" ];then
echo "ERROR: afm-util list is empty"
fi
echo "DEBUG: Verify that $WGTNAME is installed"
grep -q $NAMEID $LIST
fi
echo "DEBUG: Verify that $WGTNAME is installed"
grep -q $NAMEID $LIST
echo "ERROR: afm-util start"
lava-test-case afm-util-start-$WGTNAMEF --result fail
journalctl -an 200
echo "ERROR: afm-util start"
lava-test-case afm-util-start-$WGTNAMEF --result fail
journalctl -an 200
else
lava-test-case afm-util-start-$WGTNAMEF --result pass
fi
else
lava-test-case afm-util-start-$WGTNAMEF --result pass
fi
if [ $? -ne 0 ];then
echo "ERROR: afm-util ps"
lava-test-case afm-util-ps-$WGTNAMEF --result fail
if [ $? -ne 0 ];then
echo "ERROR: afm-util ps"
lava-test-case afm-util-ps-$WGTNAMEF --result fail
else
cat $PSLIST
lava-test-case afm-util-ps-$WGTNAMEF --result pass
else
cat $PSLIST
lava-test-case afm-util-ps-$WGTNAMEF --result pass
if [ $? -ne 0 ];then
echo "ERROR: afm-util start"
lava-test-case afm-util-start-$WGTNAMEF --result fail
if [ $? -ne 0 ];then
echo "ERROR: afm-util start"
lava-test-case afm-util-start-$WGTNAMEF --result fail
if [ "$RID" == 'null' ];then
echo "ERROR: RID is null, service fail to start"
lava-test-case afm-util-status-$WGTNAMEF --result fail
if [ "$RID" == 'null' ];then
echo "ERROR: RID is null, service fail to start"
lava-test-case afm-util-status-$WGTNAMEF --result fail
fi
echo "DEBUG: status $NAMEID ($RID)"
fi
echo "DEBUG: status $NAMEID ($RID)"
if [ $? -ne 0 ];then
echo "ERROR: afm-util status"
lava-test-case afm-util-status-$WGTNAMEF --result fail
if [ $? -ne 0 ];then
echo "ERROR: afm-util status"
lava-test-case afm-util-status-$WGTNAMEF --result fail
else
lava-test-case afm-util-status-$WGTNAMEF --result pass
fi
else
lava-test-case afm-util-status-$WGTNAMEF --result pass
fi
if [ $? -ne 0 ];then
echo "ERROR: afm-util kill"
lava-test-case afm-util-kill-$WGTNAMEF --result fail
if [ $? -ne 0 ];then
echo "ERROR: afm-util kill"
lava-test-case afm-util-kill-$WGTNAMEF --result fail
else
lava-test-case afm-util-kill-$WGTNAMEF --result pass
fi
else
lava-test-case afm-util-kill-$WGTNAMEF --result pass
fi
echo "ERROR: afm-util start2"
lava-test-case afm-util-start2-$WGTNAMEF --result fail
journalctl -an 200
echo "ERROR: afm-util start2"
lava-test-case afm-util-start2-$WGTNAMEF --result fail
journalctl -an 200
else
lava-test-case afm-util-start2-$WGTNAMEF --result pass
fi
RID="$(cat rid)"
if [ "$RID" == 'null' ];then
echo "ERROR: RID is null"
else
lava-test-case afm-util-start2-$WGTNAMEF --result pass
fi
RID="$(cat rid)"
if [ "$RID" == 'null' ];then
echo "ERROR: RID is null"
fi
sleep 10
echo "DEBUG: status2 $NAMEID ($RID)"
fi
sleep 10
echo "DEBUG: status2 $NAMEID ($RID)"
if [ $? -ne 0 ];then
echo "ERROR: afm-util status2"
lava-test-case afm-util-status2-$WGTNAMEF --result fail
if [ $? -ne 0 ];then
echo "ERROR: afm-util status2"
lava-test-case afm-util-status2-$WGTNAMEF --result fail
else
lava-test-case afm-util-status2-$WGTNAMEF --result pass
fi
else
lava-test-case afm-util-status2-$WGTNAMEF --result pass
fi