Skip to content

Commit

Permalink
Fix sed in trim.kshlib
Browse files Browse the repository at this point in the history
Also add execute perms to trim test script.
  • Loading branch information
dweeezil committed Apr 7, 2017
1 parent 3dcd97f commit a9a7167
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions tests/runfiles/trim.run
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

[DEFAULT]
pre = setup
quiet = False
pre_user = root
user = root
timeout = 600
post_user = root
post = cleanup
outputdir = /var/tmp/test_results

[tests/functional/trim]
tests = ['autotrim_001_pos', 'manualtrim_001_pos']
Empty file modified tests/zfs-tests/tests/functional/trim/autotrim_001_pos.ksh
100644 → 100755
Empty file.
Empty file modified tests/zfs-tests/tests/functional/trim/cleanup.ksh
100644 → 100755
Empty file.
Empty file modified tests/zfs-tests/tests/functional/trim/manualtrim_001_pos.ksh
100644 → 100755
Empty file.
Empty file modified tests/zfs-tests/tests/functional/trim/setup.ksh
100644 → 100755
Empty file.
Empty file modified tests/zfs-tests/tests/functional/trim/trim.cfg
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion tests/zfs-tests/tests/functional/trim/trim.kshlib
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function getsizemb
case "$(uname)" in
Linux)
typeset rval
rval=$(du --block-size 1048576 -s "$1" | sed -e 's;[ <->].*;;')
rval=$(du --block-size 1048576 -s "$1" | awk '{print $1}')
echo -n "$rval"
;;
SunOS)
Expand Down

0 comments on commit a9a7167

Please sign in to comment.