File: fix-parallel-pti-user-test-exec.diff

package info (click to toggle)
libkdumpfile 0.5.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,156 kB
  • sloc: ansic: 36,541; sh: 4,219; python: 1,569; makefile: 812
file content (47 lines) | stat: -rw-r--r-- 1,681 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: Fix xlat-linux-x86_64-6.11-pti-user-ver with parallel
 runs
 The xlat-linux-x86_64-6.11-pti-user and xlat-linux-x86_64-6.11-pti-user-ver
 test cases use the same input files, but the logic is flawed, because they
 also use the same output file names. That fails if both run in parallel.
Author: Petr Tesarik <petr@tesarici.cz>
Origin: https://github.com/delphix/libkdumpfile/commit/cc927b9e22ebe6de1a6ed23ca8d14d1f3d790fb5.patch
Bug: https://github.com/ptesarik/libkdumpfile/issues/85
Applied-Upstream: https://github.com/delphix/libkdumpfile/commit/cc927b9e22ebe6de1a6ed23ca8d14d1f3d790fb5.patch
Last-Update: 2025-06-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
diff --git a/tests/xlat-linux-x86_64-6.11-pti-user-ver b/tests/xlat-linux-x86_64-6.11-pti-user-ver
index 43d500d1..427985bc 100755
--- a/tests/xlat-linux-x86_64-6.11-pti-user-ver
+++ b/tests/xlat-linux-x86_64-6.11-pti-user-ver
@@ -14,5 +14,5 @@ opts=(
     osver=0x060b00
 )
 
-name=xlat-linux-x86_64-6.11-pti-user
+srcname=xlat-linux-x86_64-6.11-pti-user
 . "$srcdir"/xlat-os-common
diff --git a/tests/xlat-os-common b/tests/xlat-os-common
index a308a743..7dcdee91 100644
--- a/tests/xlat-os-common
+++ b/tests/xlat-os-common
@@ -4,13 +4,14 @@
 
 mkdir -p out || exit 99
 
-if [ -z "$name" ]; then
-    name=$( basename "$0" )
+name=$( basename "$0" )
+if [ -z "$srcname" ]; then
+    srcname="$name"
 fi
 resultfile="out/${name}.result"
-expectfile="$srcdir/$name.expect"
-symfile="$srcdir/$name.sym"
-datafile="$srcdir/$name.data"
+expectfile="$srcdir/$srcname.expect"
+symfile="$srcdir/$srcname.sym"
+datafile="$srcdir/$srcname.data"
 cfgfile="out/${name}.cfg"
 
 optspec=