Skip to content

Commit

Permalink
Write on stderr fixes biod#328
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Dec 31, 2017
1 parent 872702f commit d2ea41c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ similar. Also try running the latest version of sambamba to make sure
it has not been fixed already. Support/installation questions should
be aimed at the mailing list. The issue tracker is for development
issues around the software itself. When reporting an issue include the
output of the program and the contents of the .log.txt file in the
output directory.
output of the program and the contents of the output directory.

## Check list:

Expand All @@ -141,7 +140,7 @@ output directory.
6. [ ] If it is a support/install question I have posted it to the [mailing list](https://groups.google.com/forum/#!forum/sambamba-discussion)
7. [ ] If it is software development related I have posted a new issue on the [issue tracker](https://github.com/biod/sambamba/issues) or added to an existing one
8. [ ] In the message I have included the output of my sambamba run
9. [ ] In the message I have included the relevant .log.txt file in the output directory
9. [ ] In the message I have included the relevant files in the output directory
10. [ ] I have made available the data to reproduce the problem (optional)

To find bugs the sambamba software developers may ask to install a
Expand Down Expand Up @@ -233,7 +232,7 @@ documentation](https://github.com/biod/sambamba-dev-docs).

## Dump core

In a crash sambamba can dump a core. To make this happen set
In a crash sambamba can dump a core file. To make this happen set

```sh
ulimit -c unlimited
Expand Down
4 changes: 2 additions & 2 deletions cram/wrappers.d
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct RcPtr(T, alias Free) {
this(this)
{
static if (is(T == cram_slice)) {
debug writeln("COPIED #", data.payload_id + 1);
debug stderr.writeln("COPIED #", data.payload_id + 1);
}
}

Expand Down Expand Up @@ -159,7 +159,7 @@ struct CramContainerRange {
auto err_msg = "Failed to read container header";
while (true) {
// read container header
debug writeln("cram_read_container");
debug stderr.writeln("cram_read_container");
auto ptr = nullChecked!cram_read_container(err_msg, _fd);
if (ptr is null) {
empty = true;
Expand Down
1 change: 1 addition & 0 deletions test_suite.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

testSubSample() {
# bam file is part of BioD
./bin/sambamba subsample ex1_header.sorted.bam -otest3.bam &> test.out
assertEquals "5c2823e29b24a425bee5dba62107a2ce" $(md5sum test3.bam |cut -c 1-32)
}
Expand Down

0 comments on commit d2ea41c

Please sign in to comment.