Skip to content

Commit

Permalink
copy the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Nov 25, 2019
1 parent a415e33 commit 44f33ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docker/synapse_sytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ fi
echo >&2 "--- Copying assets"

# Copy out the logs
rsync --ignore-missing-args --min-size=1B -av server-0 server-1 /logs --include "*/" --include="*.log.*" --include="*.log" --exclude="*"
cp /.coverage.* /src || true
rsync --ignore-missing-args --min-size=1B -av /work/server-0 /work/server-1 /logs --include "*/" --include="*.log.*" --include="*.log" --exclude="*"
#cp /.coverage.* /src || true

cd /src
export TOP=/src
/venv/bin/coverage combine
#cd /src
#export TOP=/src
#/venv/bin/coverage combine

if [ $TEST_STATUS -ne 0 ]; then
# Build the annotation
Expand Down
6 changes: 5 additions & 1 deletion run-tests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@

'room-version=s' => \$TEST_ROOM_VERSION,

'tests-directory=s' => \(my $TESTS_DIRECTORY = "tests" ),

# these two are superceded by -I, but kept for backwards compatibility
'dendron=s' => sub {
$SERVER_IMPL = 'Synapse::ViaDendron' unless $SERVER_IMPL;
Expand Down Expand Up @@ -188,6 +190,8 @@ sub usage

--room-version VERSION - use the given room version for the majority of
tests

--tests-directory DIR - where to tlook for the tests. Defaults to './tests'.
.
write STDERR;

Expand Down Expand Up @@ -819,7 +823,7 @@ sub list_symbols
no warnings 'exiting';
last TEST if $stop_after and $filename eq $stop_after;
},
"tests"
$TESTS_DIRECTORY,
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/41end-to-end-keys/08-cross-signing.pl
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@

matrix_invite_user_to_room( $user1, $user2, $room_id )
})->then( sub {
matrix_sync( $user1 );
sync_until_user_in_device_list( $user1, $user2 );
})->then( sub {
matrix_join_room( $user2, $room_id );
})->then( sub {
Expand Down

0 comments on commit 44f33ad

Please sign in to comment.