1#!/bin/bash 2 3set -euo pipefail 4 5# This is to make the following command work to update the test output: 6# cp src/test/regress/{results,expected}/multi_cluster_management.out 7# 8# This can not be done in the custom "diff" command, because that is executed 9# multiple times 10 11for modified_file in {results,expected}/*.modified; do 12 original=${modified_file%.modified} 13 mv "$original" "$original.unmodified" 14 mv "$modified_file" "$original" 15done 16