--- serf-1.3.10/build/check.py.orig	2020-03-31 15:30:18.000000000 +0200
+++ serf-1.3.10/build/check.py	2023-08-20 15:37:29.181105481 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 #
 # check.py :  Run all the test cases.
 #
@@ -51,7 +51,7 @@
   TEST_ALL_EXE = os.path.join(test_builddir, TEST_ALL_EXE)
 
   # Find test responses and run them one by one
-  for case in glob.glob(testdir + "/testcases/*.response"):
+  for case in sorted(glob.glob(testdir + "/testcases/*.response")):
     print("== Testing %s ==" % (case))
     try:
       subprocess.check_call([SERF_RESPONSE_EXE, case])