]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: run_seed_to_range.sh: check existance of a directory using [ -d "$dir" ] 10306/head
authorKefu Chai <kchai@redhat.com>
Fri, 15 Jul 2016 08:38:23 +0000 (16:38 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Jul 2016 08:48:22 +0000 (16:48 +0800)
commit83e64fad875980844515995acee6ef501c6c7cb5
treec8f71b7be3e61b0c8049943c4a243bcb339386df
parent7c1b4560228ba18ffc0e17d2d74f00dcdb889b50
test: run_seed_to_range.sh: check existance of a directory using [ -d "$dir" ]

sadly, sh evalutes `[ -d ]` to true. as it takes "-d" as a non-empty
string as true.

this fixes following failure
```
2016-07-12T23:22:02.839 INFO:teuthology.orchestra.run.mira084.stderr:cp:
missing destination file operand after ‘.’
2016-07-12T23:22:02.839 INFO:teuthology.orchestra.run.mira084.stderr:Try
'cp --help' for more information.
```
see
http://pulpito.ceph.com/kchai-2016-07-12_23:09:35-rados-wip-kefu-testing2---basic-mira/311334/

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/run_seed_to_range.sh