openvswitch*: fix tests on python 3.13

This commit is contained in:
Adam Stephens 2024-04-23 08:53:51 -04:00
parent d0585adbbd
commit 6f0a1a1988
No known key found for this signature in database
2 changed files with 15 additions and 0 deletions

View File

@ -48,6 +48,9 @@ stdenv.mkDerivation rec {
patches = [
# 8: vsctl-bashcomp - argument completion FAILED (completion.at:664)
./patches/disable-bash-arg-completion-test.patch
# https://github.com/openvswitch/ovs/commit/9185793e75435d890f18d391eaaeab0ade6f1415
./patches/fix-python313.patch
];
nativeBuildInputs = [

View File

@ -0,0 +1,12 @@
diff --git a/tests/vlog.at b/tests/vlog.at
index 785014956e7..efe91479a63 100644
--- a/tests/vlog.at
+++ b/tests/vlog.at
@@ -8,6 +8,7 @@ AT_CHECK([$PYTHON3 $srcdir/test-vlog.py --log-file log_file \
AT_CHECK([sed -e 's/.*-.*-.*T..:..:..Z |//' \
-e 's/File ".*", line [[0-9]][[0-9]]*,/File <name>, line <number>,/' \
+-e '/\^\+/d' \
stderr_log], [0], [dnl
0 | module_0 | EMER | emergency
1 | module_0 | ERR | error