Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 854477 Details for
Bug 916356
FEAT: Retire the pccard test
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
remove the pccard test
0001-916356-FEAT-Retire-the-pccard-test.patch (text/plain), 5.52 KB, created by
Greg Nichols
on 2014-01-23 16:50:29 UTC
(
hide
)
Description:
remove the pccard test
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2014-01-23 16:50:29 UTC
Size:
5.52 KB
patch
obsolete
>From fe43e4881fe2b241c93cfe07d0414c14e7386d6c Mon Sep 17 00:00:00 2001 >From: Greg Nichols <gnichols@redhat.com> >Date: Thu, 23 Jan 2014 11:49:36 -0500 >Subject: [PATCH] 916356 - FEAT: Retire the pccard test > >--- > tests/Makefile | 2 +- > tests/pccard/Makefile | 6 ------ > tests/pccard/pccard.py | 57 -------------------------------------------------- > tests/pccard/pccard.sh | 57 -------------------------------------------------- > 4 files changed, 1 insertion(+), 121 deletions(-) > delete mode 100644 tests/pccard/Makefile > delete mode 100644 tests/pccard/pccard.py > delete mode 100644 tests/pccard/pccard.sh > >diff --git a/tests/Makefile b/tests/Makefile >index 2dc5bb2..a784b9c 100644 >--- a/tests/Makefile >+++ b/tests/Makefile >@@ -15,7 +15,7 @@ > > .PHONY: clean install > >-SUBDIRS := audio bluray cdrom dvd core info memory network pccard storage tape usb video battery suspend lid expresscard cpuscaling profiler fv_core fv_memory fv_network fv_storage realtime reboot fencing wlan kdump infiniband >+SUBDIRS := audio bluray cdrom dvd core info memory network storage tape usb video battery suspend lid expresscard cpuscaling profiler fv_core fv_memory fv_network fv_storage realtime reboot fencing wlan kdump infiniband > > > clean: >diff --git a/tests/pccard/Makefile b/tests/pccard/Makefile >deleted file mode 100644 >index f5ffd93..0000000 >--- a/tests/pccard/Makefile >+++ /dev/null >@@ -1,6 +0,0 @@ >- >-# no build necessary >-build: ; >- >-# Include Common Makefile >-include $(DESTDIR)/usr/share/hwcert/lib/hwcert-make.include >\ No newline at end of file >diff --git a/tests/pccard/pccard.py b/tests/pccard/pccard.py >deleted file mode 100644 >index 9190422..0000000 >--- a/tests/pccard/pccard.py >+++ /dev/null >@@ -1,57 +0,0 @@ >-#!/usr/bin/python >-# Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material >-# is made available to anyone wishing to use, modify, copy, or >-# redistribute it subject to the terms and conditions of the GNU General >-# Public License v.2. >-# >-# This program is distributed in the hope that it will be useful, but WITHOUT ANY >-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A >-# PARTICULAR PURPOSE. See the GNU General Public License for more details. >-# >-# You should have received a copy of the GNU General Public License >-# along with this program; if not, write to the Free Software >-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. >-# >-# Author: Greg Nichols >-# >- >-from hwcert.test import Test >-from hwcert.tags import DeviceClass, TestTag >-from hwcert.command import Command, HwCertCommandException >- >-class PCCardTest(Test): >- >- def __init__(self): >- Test.__init__(self, name="pccard") >- self.deviceClass = DeviceClass.pccard >- >- def tags(self): >- return [TestTag.noninteractive, TestTag.certification] >- >- def plan(self, planner): >- tests = list() >- devices = planner.getUdevDeviceDetector().getDevices() >- for device in devices: >- if device.getProperty("PCI_CLASS") == "60700": >- test = self.makeCopy() >- test.setDevice(device) >- tests.append(test) >- >- return tests >- >- def run(self): >- try: >- pccardSh = Command("./pccard.sh") >- pccardSh.echo() >- return 0 # passed >- except HwCertCommandException, exception: >- print "Error: " >- print exception >- pccardSh.printErrors() >- >- return 1 >- >-if __name__ == "__main__": >- test = PCCardTest() >- returnValue = test.do(sys.argv) >- sys.exit(returnValue) >diff --git a/tests/pccard/pccard.sh b/tests/pccard/pccard.sh >deleted file mode 100644 >index e3c5c01..0000000 >--- a/tests/pccard/pccard.sh >+++ /dev/null >@@ -1,57 +0,0 @@ >-#!/bin/bash >-# Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material >-# is made available to anyone wishing to use, modify, copy, or >-# redistribute it subject to the terms and conditions of the GNU General >-# Public License v.2. >-# >-# This program is distributed in the hope that it will be useful, but WITHOUT ANY >-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A >-# PARTICULAR PURPOSE. See the GNU General Public License for more details. >-# >-# You should have received a copy of the GNU General Public License >-# along with this program; if not, write to the Free Software >-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. >-# >-# Ported by : YangKun <ykun@redhat.com> >-# >-# Quick butcher from floppy.sh : Rob Landry <rlandry@redhat.com> >-# >- >- >-# find the number of sockets. >-get_socket_count() { >- # perhaps this should use the hal data instead; though I'm not certain >- # it's always 1:1 for cardbus bridges (0x0607) to sockets. >- /sbin/pccardctl ident | grep Socket | wc -l >-} >- >-socket_test() { >- SOCKET_COUNT=`get_socket_count` >- if [ $SOCKET_COUNT == "0" ]; then >- echo "Error: no sockets to test" >- return 1 >- fi >- local socket=0 >- >- # Verify the sockets are occupied when we start >- until [ $socket -ge $SOCKET_COUNT ]; do >- pccardctl ident $socket | grep -q "no product" && >- echo "Error: Unable to stat Socket $socket." && >- return 1 >- let ++socket >- done >- >- socket=0 >- # Power cycle through the sockets >- until [ $socket -ge $SOCKET_COUNT ]; do >- pccardctl eject $socket >- pccardctl insert $socket >- pccardctl ident $socket >- let ++socket >- done >- >- return 0 >-} >- >-# run the test >-socket_test >-- >1.8.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 916356
: 854477