]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Update the container to Ubuntu 22.04
authorTom Hromatka <tom.hromatka@oracle.com>
Thu, 15 Sep 2022 19:12:41 +0000 (13:12 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 15 Sep 2022 19:12:41 +0000 (13:12 -0600)
Switch to the latest stable Ubuntu for the functional tests.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
(cherry picked from commit 45f37aedda04d2ab4679eb667aef49e2d3c2328f)

ftests/consts.py
ftests/ftests.py

index 8e4b60373bd264d9a3defd2f99441eda3b7c7d2c..eace57b680fcfa3f4d979e9ca8a583ba32745a0e 100644 (file)
@@ -34,7 +34,7 @@ LIBCG_MOUNT_POINT = os.path.dirname(tests_dir)
 
 DEFAULT_CONTAINER_NAME = 'TestLibcg'
 DEFAULT_CONTAINER_DISTRO = 'ubuntu'
-DEFAULT_CONTAINER_RELEASE = '18.04'
+DEFAULT_CONTAINER_RELEASE = '22.04'
 DEFAULT_CONTAINER_ARCH = 'amd64'
 DEFAULT_CONTAINER_STOP_TIMEOUT = 5
 
index cedf98dfe691d28a45a183cde3c9db7610fcf72e..681f48d8d04dbb96f5e0a651b350c9dc2e13e8d2 100755 (executable)
@@ -175,9 +175,6 @@ def setup(config, do_teardown=True, record_time=False):
         config.container.config()
         config.container.start()
 
-        # LXC on Ubuntu 20.04 put sed in a different spot.  Add a symlink
-        config.container.run(['ln', '-s', '/bin/sed', '/usr/bin/sed'])
-
         # add the libcgroup library to the container's ld
         echo_cmd = ['bash', '-c', 'echo {} >> /etc/ld.so.conf.d/libcgroup.conf'.format(
                    os.path.join(consts.LIBCG_MOUNT_POINT, 'src/.libs'))]