diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-16 15:14:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-17 08:47:03 +0200 |
commit | 8ebf2a5d5d126e6ef9b89109124adf2a5e9e293d (patch) | |
tree | eee3ef972943be629519c2dc97928878dbd2d732 /scripts | |
parent | fd6584844b070cfc283902aba26f2853473e83d1 (diff) | |
download | PeerTube-8ebf2a5d5d126e6ef9b89109124adf2a5e9e293d.tar.gz PeerTube-8ebf2a5d5d126e6ef9b89109124adf2a5e9e293d.tar.zst PeerTube-8ebf2a5d5d126e6ef9b89109124adf2a5e9e293d.zip |
Refactor live manager
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci.sh | 2 | ||||
-rwxr-xr-x | scripts/parse-log.ts | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ci.sh b/scripts/ci.sh index 7360a03ce..b068deeb4 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh | |||
@@ -63,9 +63,9 @@ elif [ "$1" = "api-1" ]; then | |||
63 | elif [ "$1" = "api-2" ]; then | 63 | elif [ "$1" = "api-2" ]; then |
64 | npm run build:server | 64 | npm run build:server |
65 | 65 | ||
66 | liveFiles=$(findTestFiles ./dist/server/tests/api/live) | ||
66 | serverFiles=$(findTestFiles ./dist/server/tests/api/server) | 67 | serverFiles=$(findTestFiles ./dist/server/tests/api/server) |
67 | usersFiles=$(findTestFiles ./dist/server/tests/api/users) | 68 | usersFiles=$(findTestFiles ./dist/server/tests/api/users) |
68 | liveFiles=$(findTestFiles ./dist/server/tests/api/live) | ||
69 | 69 | ||
70 | MOCHA_PARALLEL=true runTest "$1" 3 $serverFiles $usersFiles $liveFiles | 70 | MOCHA_PARALLEL=true runTest "$1" 3 $serverFiles $usersFiles $liveFiles |
71 | elif [ "$1" = "api-3" ]; then | 71 | elif [ "$1" = "api-3" ]; then |
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index eb3851085..1617e4446 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts | |||
@@ -85,6 +85,8 @@ function run () { | |||
85 | const files = await getFiles() | 85 | const files = await getFiles() |
86 | 86 | ||
87 | for (const file of files) { | 87 | for (const file of files) { |
88 | if (file === 'peertube-audit.log') continue | ||
89 | |||
88 | console.log('Opening %s.', file) | 90 | console.log('Opening %s.', file) |
89 | 91 | ||
90 | const stream = createReadStream(file) | 92 | const stream = createReadStream(file) |