diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2014-05-14 12:48:17 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2014-05-28 08:34:28 -0700 |
commit | 90fd962877deb12b0807382a7ebf894223c5fb7f (patch) | |
tree | 4f5de931e5da3318c745b022cc1c59e5207d5bcb /tests/ovsdb-monitor-sort.pl | |
parent | 84f0f298298465f9bd6f7e794b671587e4556503 (diff) | |
download | openvswitch-90fd962877deb12b0807382a7ebf894223c5fb7f.tar.gz |
ovsdb-monitor.at: Changes for Windows.
ovsdb-client's 'monitor' command works with --detach such
that the parent detaches after printing initial transactions in
the database. This is a little tricky to implement
in windows. So for windows, send the process to background with
'&' and then sleep for a second to let the intial transactions
printed. (We can do the same for Linux, but it slows down the
test run)
Also let the perl script that looks at the o/p be aware of
CR LF in windows.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests/ovsdb-monitor-sort.pl')
-rwxr-xr-x | tests/ovsdb-monitor-sort.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ovsdb-monitor-sort.pl b/tests/ovsdb-monitor-sort.pl index 12034f746..24f3ffcd6 100755 --- a/tests/ovsdb-monitor-sort.pl +++ b/tests/ovsdb-monitor-sort.pl @@ -30,6 +30,9 @@ sub output_group { print "$_\n" foreach sort { compare_lines($a, $b) } @group; } +if ("$^O" eq "msys") { + $/ = "\r\n"; +} my @group = (); while (<STDIN>) { chomp; |