--- a/usr/src/cmd/distro_const/checkpoints/test/test_create_usb.py Mon Dec 05 15:27:45 2011 -0800
+++ b/usr/src/cmd/distro_const/checkpoints/test/test_create_usb.py Tue Dec 06 10:14:48 2011 -0800
@@ -21,7 +21,7 @@
#
#
-# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
#
""" test_create_usb
@@ -29,8 +29,10 @@
Test program for create_usb
"""
+import platform
import unittest
+from nose.plugins.skip import SkipTest
from subprocess import CalledProcessError
from solaris_install.distro_const.checkpoints.create_usb import CreateUSB
@@ -49,7 +51,10 @@
engine_test_utils.reset_engine()
def test_missing_iso(self):
- self.c_usb.dist_usb = "/var/tmp/temp.usb"
- self.c_usb.dist_iso = "/var/tmp/temp.iso"
- self.c_usb.tmp_mnt = "/var/tmp/tmp_mnt"
- self.assertRaises(CalledProcessError, self.c_usb.run_usbgen)
+ if platform.processor() == "i386":
+ self.c_usb.dist_usb = "/var/tmp/temp.usb"
+ self.c_usb.dist_iso = "/var/tmp/temp.iso"
+ self.c_usb.tmp_mnt = "/var/tmp/tmp_mnt"
+ self.assertRaises(CalledProcessError, self.c_usb.run_usbgen)
+ else:
+ raise SkipTest("Not on i386")