Skip to content

Commit

Permalink
testsuite: fix parallel make failure
Browse files Browse the repository at this point in the history
Problem: tests t48 and t49 use the port 10103 and
will conflict if run at the same time.

Change t49 to use port 10104.

Fixes part of #63
  • Loading branch information
garlick committed May 4, 2023
1 parent 143cbb0 commit 9156b70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/t49
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ TEST=t49

$PATH_POWERMAND -c ${TEST_BUILDDIR}/$TEST.conf -f -1 2>/dev/null&
sleep 1
./cli localhost:10103 q t1 >$TEST.out 2>$TEST.err
./cli localhost:10104 q t1 >$TEST.out 2>$TEST.err
test $? = 0 || exit 1
wait

$PATH_POWERMAND -c ${TEST_BUILDDIR}/$TEST.conf -f -1 2>/dev/null&
sleep 1
./cli localhost:10103 l >>$TEST.out 2>>$TEST.err
./cli localhost:10104 l >>$TEST.out 2>>$TEST.err
test $? = 0 || exit 1
wait

$PATH_POWERMAND -c ${TEST_BUILDDIR}/$TEST.conf -f -1 2>/dev/null&
sleep 1
./cli localhost:10103 1 t0 >>$TEST.out 2>>$TEST.err
./cli localhost:10104 1 t0 >>$TEST.out 2>>$TEST.err
test $? = 0 || exit 1
wait

Expand Down
2 changes: 1 addition & 1 deletion test/t49.conf.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
listen "0.0.0.0:10103"
listen "0.0.0.0:10104"

include "@top_srcdir@/etc/vpc.dev"
device "test0" "vpc" "@top_builddir@/test/vpcd |&"
Expand Down

0 comments on commit 9156b70

Please sign in to comment.