Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102653459
D47446.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
735 B
Referenced Files
None
Subscribers
None
D47446.diff
View Options
diff --git a/tests/sys/cam/ctl/ctl.subr b/tests/sys/cam/ctl/ctl.subr
--- a/tests/sys/cam/ctl/ctl.subr
+++ b/tests/sys/cam/ctl/ctl.subr
@@ -47,7 +47,14 @@
ctladm port -o on -p 0 >/dev/null
HEXLUN=`printf %x $LUN`
while true; do
- dev=`camcontrol devlist | awk -v lun=$HEXLUN '/FREEBSD CTL/ && $9==lun {split($10, fields, /[,]/); print fields[1];}' | sed 's:[()]::'`
+ dev=`camcontrol devlist | awk -v lun=$HEXLUN '
+ /FREEBSD CTL.*,pass/ && $9==lun {
+ split($10, fields, /[,]/); print fields[1];
+ }
+ /FREEBSD CTL.*\(pass/ && $9==lun {
+ split($10, fields, /[,]/); print fields[2];
+ }
+ ' | sed 's:[()]::'`
if [ -z "$dev" -o ! -c /dev/$dev ]; then
retries=$(( $retries - 1 ))
if [ $retries -eq 0 ]; then
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 9:38 AM (12 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14475130
Default Alt Text
D47446.diff (735 B)
Attached To
Mode
D47446: Make the CTL tests more resilient
Attached
Detach File
Event Timeline
Log In to Comment