[med-svn] [Git][med-team/snakemake][debian-v7] add forgotten file
Rebecca N. Palmer (@rnpalmer-guest)
gitlab at salsa.debian.org
Fri Aug 2 22:03:02 BST 2024
Rebecca N. Palmer pushed to branch debian-v7 at Debian Med / snakemake
Commits:
1d36855f by Rebecca N. Palmer at 2024-08-02T22:02:32+01:00
add forgotten file
- - - - -
1 changed file:
- + debian/patches/cancelscript_debug.patch
Changes:
=====================================
debian/patches/cancelscript_debug.patch
=====================================
@@ -0,0 +1,51 @@
+Description: Extra debug output from test_cluster_cancel*
+
+(failing on riscv64)
+
+Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
+Forwarded: not-needed
+
+--- a/tests/common.py
++++ b/tests/common.py
+@@ -226,6 +226,7 @@ def run(
+ process.send_signal(signal.SIGINT)
+ time.sleep(2)
+ success = process.returncode == 0
++ run_stdout=process.stdout
+ except subprocess.CalledProcessError as e:
+ success = False
+ print(e.stdout.decode(), file=sys.stderr)
+@@ -251,6 +252,9 @@ def run(
+ )
+
+ if shouldfail:
++ if shellcmd and "cancel" in shellcmd:
++ print("cancel",run_stdout,"Workdir:")
++ print_tree(tmpdir, exclude=".snakemake/conda")
+ assert not success, "expected error on execution"
+ else:
+ if not success:
+--- a/tests/tests.py
++++ b/tests/tests.py
+@@ -133,11 +133,13 @@ def test_cluster_cancelscript():
+ cleanup=False,
+ sigint_after=4,
+ )
++ assert os.path.exists(outdir+"/scancel.txt"), str(glob.glob(outdir))
+ scancel_txt = open("%s/scancel.txt" % outdir).read()
+ scancel_lines = scancel_txt.splitlines()
+ assert len(scancel_lines) == 1
+ assert scancel_lines[0].startswith("cancel")
+ assert len(scancel_lines[0].split(" ")) == 3
++ assert False, str(glob.glob(outdir))
+
+
+ @skip_on_windows
+@@ -162,6 +164,7 @@ def test_cluster_cancelscript_nargs1():
+ cleanup=False,
+ sigint_after=4,
+ )
++ assert os.path.exists(outdir+"/scancel.txt"), str(glob.glob(outdir))
+ scancel_txt = open("%s/scancel.txt" % outdir).read()
+ scancel_lines = scancel_txt.splitlines()
+ assert len(scancel_lines) == 2
View it on GitLab: https://salsa.debian.org/med-team/snakemake/-/commit/1d36855fcd3e176d43210ffd49c339ac0d2d4251
--
View it on GitLab: https://salsa.debian.org/med-team/snakemake/-/commit/1d36855fcd3e176d43210ffd49c339ac0d2d4251
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240802/b62d4873/attachment-0001.htm>
More information about the debian-med-commit
mailing list