Review at


Provide a script to mask timestamps and source file lines in expected results
files: when updating expected changes, it is useful to see the exact semantic
changes, not the timestamp and source file line changes in the git diff.

Change-Id: I785e126b1f5afddd1b722bc5e922ed90970efa8a
1 file changed, 7 insertions(+), 0 deletions(-)

  git pull ssh:// 

diff --git a/ b/
new file mode 100755
index 0000000..516bb13
--- /dev/null
+++ b/
@@ -0,0 +1,7 @@
+# to prevent diffs due to timing and source file lines, mask some numbers
+for target in */expected-results.xml; do
+  sed -i "s/time='[^']*'/time='MASKED'/g" "$target"
+  sed -i "s/ttcn:[0-9]*/ttcn:MASKED/g" "$target"

To view, visit
To unsubscribe, visit

Gerrit-MessageType: newchange
Gerrit-Change-Id: I785e126b1f5afddd1b722bc5e922ed90970efa8a
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <>

Reply via email to