Add full diff objects to output #4
@ -14,15 +14,13 @@ shift $((OPTIND - 1))
|
||||
A=${1:-geth}
|
||||
B=${2:-plugeth}
|
||||
|
||||
if [[ -n "$output_dir" ]]; then
|
||||
mkdir -p $output_dir
|
||||
A_OUTPUT="$output_dir/A"
|
||||
B_OUTPUT="$output_dir/B"
|
||||
else
|
||||
A_OUTPUT=$(mktemp -d -t A_XXXX)
|
||||
B_OUTPUT=$(mktemp -d -t B_XXXX)
|
||||
if [[ -z "$output_dir" ]]; then
|
||||
output_dir=$(mktemp -d)
|
||||
fi
|
||||
|
||||
A_OUTPUT="$output_dir/A"
|
||||
B_OUTPUT="$output_dir/B"
|
||||
|
||||
./dumpdiff.$A $A_OUTPUT
|
||||
./dumpdiff.$B $B_OUTPUT
|
||||
|
||||
@ -34,5 +32,4 @@ for file in $(ls $A_OUTPUT); do
|
||||
mv $tmpfile "$dir/$file"
|
||||
done
|
||||
(set -x; diff "${A_OUTPUT}/$file" "${B_OUTPUT}/$file")
|
||||
echo Files match: "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user