]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Add symlink to sed
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 27 Oct 2020 18:18:57 +0000 (18:18 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 28 Oct 2020 18:40:25 +0000 (12:40 -0600)
LXC on Ubuntu 20.04 placed at /bin/sed rather than
/usr/bin/sed like the cgtools scripts expect.  Create
a symlink at /usr/bin/sed so that the cgroup tools can
run like usual.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ftests/ftests.py

index 54eb658ad4dc215335fc0a3a83a6176634f60163..fba9d58414b3d7767a8b0b91282cedc81d1dfb31 100755 (executable)
@@ -147,6 +147,9 @@ 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'))]