summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2021-02-08 21:21:07 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2021-02-08 21:21:07 +0800
commitafada8b93d27cdad77a94215c12483f690157d23 (patch)
treefbee752ea74f227bc889675a5c59b332d201bf10
parent659b777419991b1f583964b60067a6c119f0a5fd (diff)
Jenkinsfile: change directory to the folder where test scripts reside.
-rw-r--r--Jenkinsfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 5e2b037..33f8d53 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -22,7 +22,7 @@ pipeline {
sh 'sudo docker run -d -p 4444:4444 selenium/standalone-chrome'
sh 'pip3 install pytest -U -q'
sh 'pip3 install selenium -U -q'
- sh 'pytest ./app/test'
+ sh 'cd ./app/test && pytest && cd -'
}
}
stage('DeployIt') {