Lines Matching refs:invalid
114 invalid()
191 [ $rc -eq 1 ] && invalid "invalid device: no inode # can be found"
237 [ -z "$g_tty" ] && invalid "$g_tty does not exist"
241 [ -z $g_netdev ] && invalid "net device is not specified"
243 [ -z "$g_dev" ] && invalid "device is not specified"
244 [ -b $g_dev ] || invalid "invalid device: $g_dev"
246 df | grep $g_dev > /dev/null 2>&1 && invalid "device $g_dev has been mounted by others"
248 df | grep $g_netdev > /dev/null 2>&1 && invalid "device $g_netdev has been mounted by others"
251 [ -d $g_bindir ] || invalid "no bin subdir there"
253 silent_exec which $g_pagetool || invalid "no $g_pagetool tool on the system"
259 [ -f $g_sysfs_mem/soft_offline_page ] || invalid "pls. ensure soft_offline_page is enabled"
265 [ $? -eq 0 ] || invalid "module hwpoison_inject isn't supported ?"
270 [ -f $g_debugfs/hwpoison/unpoison-pfn ] || invalid "pls. insmod hwpoison_inject module with unpoison-pfn support"
277 [ $? -eq 0 ] || invalid "module apei_inj isn't supported ?"
280 [ -d $g_ltproot -a -f $g_ltppan ] || invalid "no ltp-pan on the machine: $g_ltppan"
282 [ -d $g_ltproot -a -f $g_ltproot/runltp ] || invalid "no runltp on the machine"
284 [ $g_duration -eq 0 ] && invalid "test duration is set as 0 second"
1047 *) invalid "invalid option";;