Changes in / [ef7219c:7a2c5391]
- Files:
-
- 2 edited
-
Jenkins/FullBuild (modified) (2 diffs)
-
src/tests/test.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
ref7219c r7a2c5391 32 32 checkout scm 33 33 34 collect_git_info()35 36 34 //parse git logs to find what changed 37 35 sh "git remote > ${out_dir}/GIT_REMOTE" … … 44 42 45 43 sh "git push DoLang ${gitRefNewValue}:master" 46 }47 48 //Helper routine to collect information about the git history49 def collect_git_info() {50 51 //create the temporary output directory in case it doesn't already exist52 def out_dir = pwd tmp: true53 sh "mkdir -p ${out_dir}"54 55 //parse git logs to find what changed56 gitRefName = env.BRANCH_NAME57 dir("../${gitRefName}@script") {58 sh "git reflog > ${out_dir}/GIT_COMMIT"59 }60 git_reflog = readFile("${out_dir}/GIT_COMMIT")61 gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]62 gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]63 44 } 64 45 -
src/tests/test.py
ref7219c r7a2c5391 23 23 # parses the Makefile to find the machine type (32-bit / 64-bit) 24 24 def getMachineType(): 25 sh('echo "int main() { return 0; }" > .dummy.c') 26 sh("make .dummy", print2stdout=False) 27 _, out = sh("file .dummy", print2stdout=False) 28 sh("rm -f .dummy.c > /dev/null 2>&1") 29 sh("rm -f .dummy > /dev/null 2>&1") 30 return re.search("ELF\s([0-9]+)-bit", out).group(1) 25 with open('Makefile') as file: 26 makefile = file.read() 27 m = re.search("CFA_FLAGS\s*=\s*-m(.*)", makefile) 28 return m.group(1) if m else '64' 31 29 32 30 # reads the directory ./.expect and indentifies the tests 33 31 def listTests(): 34 32 machineType = getMachineType() 35 36 print(machineType)37 33 38 34 # tests directly in the .expect folder will always be processed
Note:
See TracChangeset
for help on using the changeset viewer.