1test $(busybox dirname foo/bar/baz) = foo/bar
2