Lines Matching +full:y +full:- +full:rc
2 # SPDX-License-Identifier: GPL-2.0-only
4 # common_tests - Shell script commonly used by pstore test scripts
21 if [ $1 -eq 0 ]; then
25 rc=1
30 if [ -e ${1}-${backend}-0 ]; then
32 for f in `ls ${1}-${backend}-*`; do
33 prlog -e "\t${f}"
37 rc=1
42 if [ $1 -eq 0 ]; then
45 prlog -ne "\t${f} ... "
52 rc=1
60 LOG_DIR=$TOP_DIR/logs/`date +%Y%m%d-%H%M%S`_${UUID}/
65 mkdir -p $LOG_DIR || errexit "Failed to make a log directory: $LOG_DIR"
68 /bin/echo "$@" | tee -a $LOG_FILE
72 rc=0
76 prlog -n "Checking pstore backend is registered ... "
79 prlog -e "\tbackend=${backend}"
80 prlog -e "\tcmdline=`cat /proc/cmdline`"
81 if [ $rc -ne 0 ]; then