Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 9393553

Browse files
committed
Jenkinsfile: Run device manager tests while running e2e tests
As creating a new VM is expensive, Hence running device manager tests in the same cluster used by e2e tests. It uses the first worker of the populated cluster to run tests.
1 parent b7cb533 commit 9393553

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

Jenkinsfile

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -159,26 +159,6 @@ pipeline {
159159
}
160160
}
161161

162-
stage('make dm-test') {
163-
options {
164-
timeout(time: 30, unit: "MINUTES")
165-
}
166-
167-
steps {
168-
sh "docker run --rm ${DockerBuildArgs()} \
169-
--privileged=true \
170-
-e TEST_CHECK_SIGNED_FILES=false \
171-
-e TEST_DISTRO=clear \
172-
-e TEST_DISTRO_VERSION=${env.CLEAR_LINUX_VERSION_1_15} \
173-
-v `pwd`:`pwd`:rshared \
174-
-w `pwd` \
175-
${env.BUILD_IMAGE} bash -c 'set -x; \
176-
swupd bundle-add openssh-client && \
177-
make run_dm_tests; \
178-
make stop'"
179-
}
180-
}
181-
182162
stage('Build test image') {
183163
options {
184164
timeout(time: 60, unit: "MINUTES")
@@ -440,6 +420,7 @@ void TestInVM(deviceMode, deploymentMode, distro, distroVersion, kubernetesVersi
440420
\$ssh top -b -n 1 -w 120 2>&1 | head -n 20; \
441421
done ) | sed -e \"s/^/\$hostname: /\" & \
442422
done && \
423+
make run_dm_tests && \
443424
make test_e2e TEST_E2E_REPORT_DIR=`pwd`/build/reports.tmp/\$testrun' \
444425
"
445426
} finally {

0 commit comments

Comments
 (0)