Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

*** 24,34 **** # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ! # Copyright (c) 2013 by Delphix. All rights reserved. # . $STF_SUITE/include/libtest.shlib . $STF_SUITE/tests/functional/migration/migration.kshlib --- 24,34 ---- # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ! # Copyright (c) 2013, 2016 by Delphix. All rights reserved. # . $STF_SUITE/include/libtest.shlib . $STF_SUITE/tests/functional/migration/migration.kshlib
*** 46,66 **** verify_runnable "both" function cleanup { ! $RM -rf $TESTDIR/cp$$.cp ! $RM -rf $NONZFS_TESTDIR/$BNAME } log_assert "Migrating test file from UFS fs to ZFS fs using cp" log_onexit cleanup ! prepare $DNAME "$CP $BNAME $NONZFS_TESTDIR/cp$$.cp" (( $? != 0 )) && log_fail "Unable to create src archive" ! migrate $TESTDIR $SUMA $SUMB "$CP $NONZFS_TESTDIR/cp$$.cp $BNAME" (( $? != 0 )) && log_fail "Uable to successfully migrate test file from" \ "UFS fs to ZFS fs" log_pass "Successully migrated test file from UFS fs to ZFS fs". --- 46,66 ---- verify_runnable "both" function cleanup { ! rm -rf $TESTDIR/cp$$.cp ! rm -rf $NONZFS_TESTDIR/$BNAME } log_assert "Migrating test file from UFS fs to ZFS fs using cp" log_onexit cleanup ! prepare $DNAME "cp $BNAME $NONZFS_TESTDIR/cp$$.cp" (( $? != 0 )) && log_fail "Unable to create src archive" ! migrate $TESTDIR $SUMA $SUMB "cp $NONZFS_TESTDIR/cp$$.cp $BNAME" (( $? != 0 )) && log_fail "Uable to successfully migrate test file from" \ "UFS fs to ZFS fs" log_pass "Successully migrated test file from UFS fs to ZFS fs".