Print this page
NEX-3974 Remove timing issues so the robot can run consistently
Reviewed by: Steve Peng <steve.peng@nexenta.com>
Reviewed by: Josef Sipek <josef.sipek@nexenta.com>
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/test/zfs-tests/tests/functional/bootfs/bootfs_005_neg.ksh
+++ new/usr/src/test/zfs-tests/tests/functional/bootfs/bootfs_005_neg.ksh
1 1 #!/usr/bin/ksh -p
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License (the "License").
7 7 # You may not use this file except in compliance with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
|
↓ open down ↓ |
19 lines elided |
↑ open up ↑ |
20 20 # CDDL HEADER END
21 21 #
22 22
23 23 #
24 24 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 27
28 28 #
29 29 # Copyright (c) 2012, 2017 by Delphix. All rights reserved.
30 +# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
30 31 #
31 32
32 33 . $STF_SUITE/include/libtest.shlib
33 34 . $STF_SUITE/tests/functional/cli_root/zpool_upgrade/zpool_upgrade.kshlib
34 35
35 36 #
36 37 # DESCRIPTION:
37 38 #
38 39 # Boot properties cannot be set on pools with older versions
39 40 #
40 41 # STRATEGY:
41 42 # 1. Copy and import some pools of older versions
42 43 # 2. Create a filesystem on each
43 44 # 3. Verify that zpool set bootfs fails on each
44 45 #
45 46
46 47 verify_runnable "global"
47 48
48 49 function cleanup {
49 50
50 51 #
51 52 # we need destroy pools that created on top of $TESTPOOL first
52 53 #
53 54 typeset pool_name
54 55 for config in $CONFIGS; do
55 56 pool_name=$(eval echo \$ZPOOL_VERSION_${config}_NAME)
56 57 destroy_pool $pool_name
57 58 done
58 59
59 60 destroy_pool $TESTPOOL
60 61 }
61 62
62 63 log_assert "Boot properties cannot be set on pools with older versions"
63 64
64 65 # These are configs from zpool_upgrade.cfg - see that file for more info.
65 66 CONFIGS="1 2 3"
66 67
67 68 log_onexit cleanup
68 69 log_must zpool create -f $TESTPOOL $DISKS
69 70
70 71 for config in $CONFIGS
71 72 do
72 73 create_old_pool $config
73 74 POOL_NAME=$(eval echo \$ZPOOL_VERSION_${config}_NAME)
74 75 log_must zfs create $POOL_NAME/$TESTFS
75 76 log_mustnot zpool set bootfs=$POOL_NAME/$TESTFS $POOL_NAME
76 77 log_must destroy_upgraded_pool $config
77 78 done
78 79
79 80 log_pass "Boot properties cannot be set on pools with older versions"
|
↓ open down ↓ |
40 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX