summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0001-metadata-parse.sh-sort-filelist-for-reproducibility.patch
blob: e8d9f212a978f667ee0c2647765be2973074575b (plain)
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
From 4aad23f208cc7725cd61bbe5aaadb9994c794cd0 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex@linutronix.de>
Date: Wed, 26 Jan 2022 20:58:46 +0100
Subject: [PATCH] metadata/parse.sh: sort filelist for reproducibility

find does not guarantee the order of the files.

Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/907]
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 metadata/parse.sh | 2 +-

diff --git a/metadata/parse.sh b/metadata/parse.sh
index b43d024c68..1811665bfe 100755
--- a/metadata/parse.sh
+++ b/metadata/parse.sh
@@ -29,7 +29,7 @@ echo ' "tests": {'
 
 first=1
 
-for test in `find testcases/ -name '*.c'`; do
+for test in `find testcases/ -name '*.c'|sort`; do
 	a=$($top_builddir/metadata/metaparse -Iinclude -Itestcases/kernel/syscalls/utils/ "$test")
 	if [ -n "$a" ]; then
 		if [ -z "$first" ]; then
-- 
2.20.1