Skip to content

Commit 120f9c9

Browse files
committed
copy artifacts
1 parent 8461377 commit 120f9c9

2 files changed

Lines changed: 17 additions & 15 deletions

File tree

test/groovy/LRS_libci_pipeline.groovy

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,27 @@ pipeline {
88
timeout(time: 30, unit: 'MINUTES')
99
}
1010

11-
parameters {
12-
string(name: 'ARTIFACTORY_SERVER_URL', description: '', defaultValue: 'https://rsartifactory.realsenseai.com/artifactory')
13-
string(name: 'ARTIFACTORY_REPO', description: '', defaultValue: 'realsense_generic_dev-il-local')
14-
}
15-
1611
stages {
17-
stage('get artifacts') {
12+
stage('Get artifacts') {
13+
steps {
14+
script {
15+
copyArtifacts filter: '**/*.tar.bz2',
16+
projectName: 'D4xx_Kernel_Module_Jetson_JP6',
17+
flatten: true,
18+
target: 'artifacts/'
19+
}
20+
}
21+
}
22+
stage('Install artifacts') {
1823
steps {
1924
script {
20-
def server = Artifactory.server 'realsense artifacts'
21-
server.download spec: 'download-spec.json'
22-
def baseDir = new File('/your/path')
23-
def newestDir = baseDir.listFiles()
24-
.findAll { it.isDirectory() }
25-
.max { it.lastModified() }
25+
sh """#!/bin/sh
26+
tar -xf 'root.fs.tar.bz2'
27+
"""
2628
}
2729
}
2830
}
29-
stage('pytest') {
31+
stage('Pytest') {
3032
steps {
3133
script {
3234
sh 'pytest --tb=no -s test'

test/test_fps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def test_fps(device, frames):
5555
fps = 1000 / float(m.group(1))
5656
print(f"/{fps:.2f}", end='')
5757
if not skip:
58-
assert fps > FPS * (1 - kpi/100), f"FPS too low: {fps}/{FPS}"
59-
assert fps < FPS * (1 + kpi/100), f"FPS too high: {fps}/{FPS}"
58+
assert fps > FPS * (1 - kpi/100), f"FPS too low: {fps:.2f}/{FPS}"
59+
assert fps < FPS * (1 + kpi/100), f"FPS too high: {fps:.2f}/{FPS}"
6060
else:
6161
print('?', end='')
6262
skip = False

0 commit comments

Comments
 (0)