From 0b1c44aad2bc926fbfadf3fa97cc688c4bc49b65 Mon Sep 17 00:00:00 2001 From: John Huddleston Date: Thu, 3 Aug 2023 15:49:29 -0700 Subject: [PATCH] Ignore path to annotations in JSON output for test Ignores the path to GFF/GenBank annotations in the JSON output for an augur ancestral functional test. This path will vary across platforms based on the working directory used. --- .../cram/infer-amino-acid-sequences-with-root-sequence.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/functional/ancestral/cram/infer-amino-acid-sequences-with-root-sequence.t b/tests/functional/ancestral/cram/infer-amino-acid-sequences-with-root-sequence.t index 3ac2cf513..0d61ca296 100644 --- a/tests/functional/ancestral/cram/infer-amino-acid-sequences-with-root-sequence.t +++ b/tests/functional/ancestral/cram/infer-amino-acid-sequences-with-root-sequence.t @@ -19,5 +19,8 @@ ancestor). Check that the reference length was correctly exported as the nuc annotation - $ python3 "$TESTDIR/../../../../scripts/diff_jsons.py" "$TESTDIR/../data/ancestral_mutations_with_root_sequence.json" "$CRAMTMP/$TESTFILE/ancestral_mutations.json" + $ python3 "$TESTDIR/../../../../scripts/diff_jsons.py" \ + > --exclude-regex-paths "['seqid']" -- \ + > "$TESTDIR/../data/ancestral_mutations_with_root_sequence.json" \ + > "$CRAMTMP/$TESTFILE/ancestral_mutations.json" {}