Content-Type: multipart/mixed; boundary="===============1367285583517653086==" MIME-Version: 1.0 From: James Prestwood To: iwd at lists.01.org Subject: [PATCH 1/8] auto-t: remove waitstatus_to_exitcode for better compatibility Date: Tue, 22 Mar 2022 15:51:06 -0700 Message-ID: <20220322225113.1023688-1-prestwoj@gmail.com> --===============1367285583517653086== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This was added in Python 3.9 which isn't always supported. Instead use the old way of checking the return status. --- autotests/testNetconfig/connection_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autotests/testNetconfig/connection_test.py b/autotests/testNet= config/connection_test.py index 8eeffbbd..17788011 100644 --- a/autotests/testNetconfig/connection_test.py +++ b/autotests/testNetconfig/connection_test.py @@ -41,7 +41,8 @@ class Test(unittest.TestCase): = time.sleep(2) ret =3D os.system('ip addr show ' + device.name + ' | grep \'inet6= 3ffe:501:ffff:100::\'') - self.assertEqual(os.waitstatus_to_exitcode(ret), 0) + self.assertTrue(os.WIFEXITED(ret)) + self.assertEqual(os.WEXITSTATUS(ret), 0) = device.disconnect() = -- = 2.34.1 --===============1367285583517653086==--