support/testing: update to the new text representation of capabilities
authorRomain Naour <romain.naour@gmail.com>
Tue, 10 Nov 2020 22:29:01 +0000 (23:29 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 11 Nov 2020 09:12:48 +0000 (10:12 +0100)
Since libcap 2.41, the text representation of capabilities now use
the '=' instead of '+' [1].

This break our capabilities tests since we still use the old
representation.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/commit/?id=177cd418031b1acfcf73fe3b1af9f3279828681c

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/830981737

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/testing/tests/core/test_file_capabilities.py

index 945b48a4c36bcebad01511140866e3d7eef92761..b9ece18d7b95ee68edf9eb5517319c32a1af3118 100644 (file)
@@ -44,4 +44,4 @@ class TestFileCapabilities(infra.basetest.BRTest):
         self.assertIn("cap_kill", output[0])
         self.assertIn("cap_sys_nice", output[0])
         self.assertIn("cap_sys_time", output[0])
-        self.assertIn("+eip", output[0])
+        self.assertIn("=eip", output[0])