diff --git a/tests/zfs-tests/tests/Makefile.am b/tests/zfs-tests/tests/Makefile.am index 131624c2e8ef..994fba173368 100644 --- a/tests/zfs-tests/tests/Makefile.am +++ b/tests/zfs-tests/tests/Makefile.am @@ -1185,6 +1185,10 @@ nobase_dist_datadir_zfs_tests_tests_SCRIPTS += \ functional/cli_root/zpool_prefetch/cleanup.ksh \ functional/cli_root/zpool_prefetch/setup.ksh \ functional/cli_root/zpool_prefetch/zpool_prefetch_001_pos.ksh \ + functional/cli_root/zpool_reguid/cleanup.ksh \ + functional/cli_root/zpool_reguid/setup.ksh \ + functional/cli_root/zpool_reguid/zpool_reguid_001_pos.ksh \ + functional/cli_root/zpool_reguid/zpool_reguid_002_neg.ksh \ functional/cli_root/zpool_remove/cleanup.ksh \ functional/cli_root/zpool_remove/setup.ksh \ functional/cli_root/zpool_remove/zpool_remove_001_neg.ksh \ diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/Makefile.am b/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/Makefile.am deleted file mode 100644 index 87d46b394015..000000000000 --- a/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_reguid -dist_pkgdata_SCRIPTS = \ - setup.ksh \ - cleanup.ksh \ - zpool_reguid_001_pos.ksh \ - zpool_reguid_002_neg.ksh diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_001_pos.ksh b/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_001_pos.ksh index 4e18abd988cd..3fea6c3bb0f0 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_001_pos.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_001_pos.ksh @@ -62,12 +62,12 @@ if [[ "$initial_guid" == "$new_guid" ]]; then log_fail "GUID change failed; GUID has not changed: $initial_guid" fi -for g in "$(bc -e '2^64 - 1')" 0; do +for g in "$(echo '2^64 - 1' | bc)" "314"; do set_guid "$g" done # zpool-reguid(8) will strip the leading 0. set_guid 0123 "123" # GUID "-1" is effectively 2^64 - 1 in value. -set_guid -1 "$(bc -e '2^64 - 1')" +set_guid -1 "$(echo '2^64 - 1' | bc)" log_pass "'zpool reguid' changes GUID as expected." diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_002_neg.ksh b/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_002_neg.ksh index 599041e284e2..4de0a05915d9 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_002_neg.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_002_neg.ksh @@ -46,7 +46,7 @@ check_guid() { log_assert "Verify 'zpool reguid' does not accept invalid GUIDs" -for ig in "$(bc -e '2^64')" 0xA 0xa; do +for ig in "$(echo '2^64' | bc)" 0xA 0xa 0; do check_guid "$ig" done