diff options
author | Misono, Tomohiro <misono.tomohiro@jp.fujitsu.com> | 2017-09-05 14:50:03 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-08 16:15:05 +0200 |
commit | cb39164f9d87e6309e315929a3b6a6791c5ee8f6 (patch) | |
tree | a8687a95f7226089662bbd8b2a56ae8f1d9d0a76 /tests | |
parent | 02e9bb9f236e28801a7a2cb66c82ea9d04260018 (diff) |
btrfs-progs: test: fix name generation not to contain trailing spaces
First patch causes test-convert fails. This is because
generate_dataset() creates a name containing trailing spaces for
"slow_symlink" type, and cause getfacl error in convert_test_perm().
(This is not noticed since original run_check_stdout() throws away the
error.)
Fix this by use space for delimiter for cut.
Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common b/tests/common index d450c2c8..08a25918 100644 --- a/tests/common +++ b/tests/common @@ -509,7 +509,7 @@ generate_dataset() { ;; slow_symlink) - long_filename=`date +%s | sha256sum | cut -f1 -d'-'` + long_filename=`date +%s | sha256sum | cut -f1 -d ' '` run_check $SUDO_HELPER touch "$dirpath/$long_filename" for num in $(seq 1 "$DATASET_SIZE"); do run_check $SUDO_HELPER ln -s "$dirpath/$long_filename" "$dirpath/slow_slink.$num" |