aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/miscs
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-08 17:47:19 +0200
committerChocobozzz <me@florianbigard.com>2018-10-08 17:47:19 +0200
commitc1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac (patch)
treed11cc73c8943c3261c04442a7eed5caf68e86e14 /server/tests/utils/miscs
parent9f1ddd249652c1e35b45db33885a00a005f9b059 (diff)
downloadPeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.tar.gz
PeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.tar.zst
PeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.zip
Try to cache video_high_bitrate_1080p in travis
Diffstat (limited to 'server/tests/utils/miscs')
-rw-r--r--server/tests/utils/miscs/miscs.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/utils/miscs/miscs.ts b/server/tests/utils/miscs/miscs.ts
index b2f80e9b1..d20fa96b8 100644
--- a/server/tests/utils/miscs/miscs.ts
+++ b/server/tests/utils/miscs/miscs.ts
@@ -51,11 +51,13 @@ async function testImage (url: string, imageName: string, imagePath: string, ext
51 expect(data.length).to.be.below(maxLength) 51 expect(data.length).to.be.below(maxLength)
52} 52}
53 53
54function buildAbsoluteFixturePath (path: string) { 54function buildAbsoluteFixturePath (path: string, customTravisPath = false) {
55 if (isAbsolute(path)) { 55 if (isAbsolute(path)) {
56 return path 56 return path
57 } 57 }
58 58
59 if (customTravisPath && process.env.TRAVIS) return join(process.env.HOME, 'fixtures', path)
60
59 return join(__dirname, '..', '..', 'fixtures', path) 61 return join(__dirname, '..', '..', 'fixtures', path)
60} 62}
61 63