[ovs-git] [openvswitch/ovs] c9bfe5: tests: Use $(MKDIR_P) to avoid races.
noreply at github.com
Wed Dec 6 18:26:25 UTC 2017
Author: Ben Pfaff <blp at ovn.org>
Date: 2017-12-06 (Wed, 06 Dec 2017)
tests: Use $(MKDIR_P) to avoid races.
"test -d x || mkdir x" has a race when invoked in parallel: it is possible
for two processes to both see that 'x' does not exist and both try to
create it, and if that happens then one of them will fail. This avoids
Signed-off-by: Ben Pfaff <blp at ovn.org>
Reviewed-by: Greg Rose <gvrose8192 at gmail.com>
More information about the git