diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-05-29 11:20:29 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-05-29 11:20:29 +0100 |
commit | f6e36bf361c587e0dbb2f0c71f5d22a7cf7f4f42 (patch) | |
tree | dc7a8538afe4fa534a68d47de6d7dcb3ba878098 /src | |
parent | 1e4173be10cf762c85f7f64ab27be98f3b57dd7a (diff) | |
download | libguestfs-f6e36bf361c587e0dbb2f0c71f5d22a7cf7f4f42.tar.gz libguestfs-f6e36bf361c587e0dbb2f0c71f5d22a7cf7f4f42.tar.xz libguestfs-f6e36bf361c587e0dbb2f0c71f5d22a7cf7f4f42.zip |
Fix mkdir-p if directory exists (RHBZ#503133).
Diffstat (limited to 'src')
-rwxr-xr-x | src/generator.ml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml index f30d7798..9f019048 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -1002,7 +1002,14 @@ Create a directory named C<path>."); ["is_dir"; "/new/foo"]]; InitBasicFS, Always, TestOutputTrue [["mkdir_p"; "/new/foo/bar"]; - ["is_dir"; "/new"]]], + ["is_dir"; "/new"]]; + (* Regression tests for RHBZ#503133: *) + InitBasicFS, Always, TestRun + [["mkdir"; "/new"]; + ["mkdir_p"; "/new"]]; + InitBasicFS, Always, TestLastFail + [["touch"; "/new"]; + ["mkdir_p"; "/new"]]], "create a directory and parents", "\ Create a directory named C<path>, creating any parent directories |