Differences in memory addresses are not necessarily differences in values. Refs #3571 Message-Id: <1531824919-12737-1-git-send-email-tgrabiec@scylladb.com>
14 lines
325 B
Bash
Executable File
14 lines
325 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Converts assertion failure text involving two mutations to a diff.
|
|
#
|
|
# Usage: mutation_diff <path-to-test-output-file>
|
|
#
|
|
|
|
function filter {
|
|
sed 's/@0x[0-9a-f]*//g'
|
|
}
|
|
|
|
colordiff -u <(sed -n '/expected/,/got:/p' $1 | head -n-1 | filter) \
|
|
<(sed -n '/got:/,/^$/p' $1 | filter) | less -R
|