summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-03-18 11:24:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-03-18 12:34:08 -0400
commita69b05c4d791892743db67bce91496fd6be39b50 (patch)
tree4f80aa18809a6b78e235666fb96274734efd002d /tests.sh
parentc6d88ba2bd43db9a3bcc19f27bf803921835c549 (diff)
downloadbfs-a69b05c4d791892743db67bce91496fd6be39b50.tar.xz
tests: Be robust to ls -i implementation that output a leading space
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 0809226..f59ac84 100755
--- a/tests.sh
+++ b/tests.sh
@@ -1239,7 +1239,7 @@ function test_quit_implicit_print() {
}
function test_inum() {
- local inode="$(ls -id basic/k/foo/bar | cut -f1 -d' ')"
+ local inode="$(ls -id basic/k/foo/bar | awk '{ print $1 }')"
bfs_diff basic -inum "$inode"
}