generic/131: Create server.out manually.

When test generic/131 on nfs, the 'server.out' maybe create
later than expect. Because the server is running on background,
we should ensure the 'server.out' is exist before 'cat' it.

So, let's create the server.out manually.

Signed-off-by: ZhangXiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
zhangxiaoxu 00467499
2019-03-19 14:27:55 +08:00
committed by Eryu Guan
parent 86ce63ac21
commit 2caa208e3a
+3
View File
@@ -33,6 +33,9 @@ _require_test_fcntl_advisory_locks
TESTFILE=$TEST_DIR/lock_file
rm -f $TEST_DIR/server.out
touch $TEST_DIR/server.out
# Start the server
src/locktest $TESTFILE 2>&1 > $TEST_DIR/server.out &
locktest_pid1=$!