1From 6309792c49ca900cec6a7f1dc5b51bf75b629e11 Mon Sep 17 00:00:00 2001 2From: Jeremy Puhlman <jpuhlman@mvista.com> 3Date: Wed, 11 Mar 2020 19:56:55 +0000 4Subject: [PATCH] strace: fix reproducibilty issues 5 6The full path to the gen_tests.sh script is encoded in the tests 7 8Upstream-Status: Pending 9 10Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> 11--- 12 tests/gen_tests.sh | 4 ++-- 13 1 file changed, 2 insertions(+), 2 deletions(-) 14 15diff --git a/tests/gen_tests.sh b/tests/gen_tests.sh 16index 5e1e7c9..1e65eac 100755 17--- a/tests/gen_tests.sh 18+++ b/tests/gen_tests.sh 19@@ -46,7 +46,7 @@ while read -r name arg0 args; do { 20 21 hdr="\ 22 #!/bin/sh -efu 23-# Generated by $0 from $input ($name $arg0 $args); do not edit." 24+# Generated by $(basename $0) from $input ($name $arg0 $args); do not edit." 25 26 case "$arg0" in 27 +*) 28@@ -80,7 +80,7 @@ while read -r name arg0 args; do { 29 30 if [ -n "$names" ]; then 31 { 32- printf '# Generated by %s from %s; do not edit.\n' "$0" "$input" 33+ printf '# Generated by %s from %s; do not edit.\n' "$(basename $0)" "$input" 34 printf 'GEN_TESTS =' 35 printf ' %s.gen.test' $names 36 echo 37-- 382.24.1 39 40