forked from PAWPAW-Mirror/lib_xua
Tidy debug
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -36,8 +36,7 @@ pipeline {
|
|||||||
dir("${REPO}/tests"){
|
dir("${REPO}/tests"){
|
||||||
viewEnv(){
|
viewEnv(){
|
||||||
withVenv{
|
withVenv{
|
||||||
// runPytest('--numprocesses=4')
|
runPytest('--numprocesses=4')
|
||||||
runPytest('-k "midi" -s')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -76,8 +75,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
cleanup {
|
cleanup {
|
||||||
// Temp debug used by test_tx
|
|
||||||
archiveArtifacts artifacts: "${REPO}/**/*.txt", fingerprint: true, allowEmptyArchive: true
|
|
||||||
xcoreCleanSandbox()
|
xcoreCleanSandbox()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ def build_midi():
|
|||||||
result = subprocess.run(cmd, capture_output=True, text=True, shell=True)
|
result = subprocess.run(cmd, capture_output=True, text=True, shell=True)
|
||||||
all_build_success = result.returncode
|
all_build_success = result.returncode
|
||||||
|
|
||||||
with open("midi_build.txt", "wt") as mb:
|
assert all_build_success == 0, f"{result.stderr}\n{result.stdout}"
|
||||||
mb.write(str(result))
|
|
||||||
|
return str(Path(__file__).parent / f"test_midi/bin/")
|
||||||
|
|
||||||
return str(Path(__file__).parent / f"test_midi/bin/") if all_build_success == 0 else False
|
|
||||||
|
|||||||
@@ -18,11 +18,6 @@ MAX_CYCLES = 15000000
|
|||||||
@pytest.mark.parametrize("config", MIDI_TEST_CONFIGS)
|
@pytest.mark.parametrize("config", MIDI_TEST_CONFIGS)
|
||||||
def test_tx(capfd, config, build_midi):
|
def test_tx(capfd, config, build_midi):
|
||||||
|
|
||||||
with open("dir.txt", "wt") as db:
|
|
||||||
import subprocess
|
|
||||||
output = subprocess.run("tree", capture_output=True, text=True, shell=True)
|
|
||||||
db.write(output.stdout)
|
|
||||||
|
|
||||||
# Need tempdir as we use the same config files and this causes issues when using xdist
|
# Need tempdir as we use the same config files and this causes issues when using xdist
|
||||||
with tempdir() as tmpdirname:
|
with tempdir() as tmpdirname:
|
||||||
copy_tree(build_midi, tmpdirname)
|
copy_tree(build_midi, tmpdirname)
|
||||||
|
|||||||
Reference in New Issue
Block a user