]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: account for build dir being under one of the tmpfs-ed directories
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 5 Apr 2024 17:23:12 +0000 (19:23 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 5 Apr 2024 17:44:41 +0000 (19:44 +0200)
commit3ebd598624d1f371144df97a08fde40cd47664bf
tree4fdb757e23212db7394605de9c113e638c032986
parenta9805f8ca9c1561e373355fe7175579b31e1c08c
test: account for build dir being under one of the tmpfs-ed directories

If we're running test-execute from the build directory which is under
one of the tmpfs-ed directories (i.e. /root or /tmp), test-execute might
behave strangely, since in that case manager_new() pins the system
systemd-executor binary instead of the build dir one, which may lead to
a very confusing test fails (if there's enough difference between the
system and built sd-executor binary). Let's account for that and
bind-mount the build dir under the tmpfs-ed directory if necessary.
src/test/test-execute.c