From d1a2ce5ef336a0fb260ff50a6740ebe483d9b8b9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 2 Feb 2021 13:45:58 +0100 Subject: Fix tmp tests --- shared/extra-utils/server/servers.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'shared/extra-utils') diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts index 6ab7bee90..08d05ef36 100644 --- a/shared/extra-utils/server/servers.ts +++ b/shared/extra-utils/server/servers.ts @@ -272,8 +272,12 @@ async function reRunServer (server: ServerInfo, configOverride?: any) { return server } -function checkTmpIsEmpty (server: ServerInfo) { - return checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css' ]) +async function checkTmpIsEmpty (server: ServerInfo) { + await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls' ]) + + if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) { + await checkDirectoryIsEmpty(server, 'tmp/hls') + } } async function checkDirectoryIsEmpty (server: ServerInfo, directory: string, exceptions: string[] = []) { -- cgit v1.2.3