ovsdb-tool: Workaround inability to replace existing file on Windows.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 16 Jun 2014 22:49:06 +0000 (15:49 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 26 Jun 2014 23:58:36 +0000 (16:58 -0700)
commit10c119c3113a125877d381a3be52e80c1bfe26a5
tree4f88ae0ac2e9ba73696de1d9521c3082ca9edbc5
parentbd270dc33b61b9e65dcb67a69314d2a042a717ed
ovsdb-tool: Workaround inability to replace existing file on Windows.

rename() on an existing destination file fails on Windows. This commit
worksaround that problem.

There are two tests that test it. But both of them use the ovsdb-server's
--run option for the test and it does not exist in Windows. So change
the test to workaround the lack of that feature.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ovsdb/ovsdb-tool.c
tests/ovsdb-tool.at