public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug testsuite/18563] New: on ppc64, the mbrwatch.stp example script fails when tested
@ 2015-06-19 18:23 dsmith at redhat dot com
  2015-06-19 18:27 ` [Bug testsuite/18563] " dsmith at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dsmith at redhat dot com @ 2015-06-19 18:23 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=18563

            Bug ID: 18563
           Summary: on ppc64, the mbrwatch.stp example script fails when
                    tested
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
  Target Milestone: ---

On ppc64, the mbrwatch.stp example script fails to run when tested by the
check.exp test case. Here's the relevant output from the log file:

====
attempting command stap mbrwatch.stp -c "dd of=/dev/null count=1 if=/dev/`grep
-v major /proc/partitions | grep . | awk '{print $4}' | head -1`"
OUT dd: failed to open '/dev/sr0': No medium found
WARNING: Child process exited with status 1
WARNING: /usr/local/bin/staprun exited with status: 1
Pass 5: run failed.  [man error::pass5]
child process exited abnormally
RC 1
FAIL: systemtap.examples/io/mbrwatch run
====

The problem here is that when looking for a disk to read, the test case is
grabbing /dev/sr0, which isn't really a disk drive:

====
# lsblk
NAME                                   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                                      8:0    0   20G  0 disk 
├─sda1                                   8:1    0    4M  0 part 
├─sda2                                   8:2    0  500M  0 part /boot
└─sda3                                   8:3    0 19.5G  0 part 
  ├─rhel_ibm--ps822--1--vios--lp5-swap 253:0    0    2G  0 lvm  [SWAP]
  └─rhel_ibm--ps822--1--vios--lp5-root 253:1    0 17.5G  0 lvm  /
sr0                                     11:0    1 1024M  0 rom  
====

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug testsuite/18563] on ppc64, the mbrwatch.stp example script fails when tested
  2015-06-19 18:23 [Bug testsuite/18563] New: on ppc64, the mbrwatch.stp example script fails when tested dsmith at redhat dot com
@ 2015-06-19 18:27 ` dsmith at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dsmith at redhat dot com @ 2015-06-19 18:27 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=18563

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from David Smith <dsmith at redhat dot com> ---
Fixed in commit 7e05b29. Now the meta file ignores devices named 'sr[0-9]'.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-19 18:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19 18:23 [Bug testsuite/18563] New: on ppc64, the mbrwatch.stp example script fails when tested dsmith at redhat dot com
2015-06-19 18:27 ` [Bug testsuite/18563] " dsmith at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).