Skip to content

Commit cc927b9

Browse files
committed
tests: 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. Fixes: ptesarik#85 Signed-off-by: Petr Tesarik <[email protected]>
1 parent 40c9ff9 commit cc927b9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

tests/xlat-linux-x86_64-6.11-pti-user-ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ opts=(
1414
osver=0x060b00
1515
)
1616

17-
name=xlat-linux-x86_64-6.11-pti-user
17+
srcname=xlat-linux-x86_64-6.11-pti-user
1818
. "$srcdir"/xlat-os-common

tests/xlat-os-common

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44

55
mkdir -p out || exit 99
66

7-
if [ -z "$name" ]; then
8-
name=$( basename "$0" )
7+
name=$( basename "$0" )
8+
if [ -z "$srcname" ]; then
9+
srcname="$name"
910
fi
1011
resultfile="out/${name}.result"
11-
expectfile="$srcdir/$name.expect"
12-
symfile="$srcdir/$name.sym"
13-
datafile="$srcdir/$name.data"
12+
expectfile="$srcdir/$srcname.expect"
13+
symfile="$srcdir/$srcname.sym"
14+
datafile="$srcdir/$srcname.data"
1415
cfgfile="out/${name}.cfg"
1516

1617
optspec=

0 commit comments

Comments
 (0)