Commit Graph

11 Commits

Author SHA1 Message Date
Jonathan Wright
5e2b6a3079 Make test "can pivot to new rootfs recursively" work on NixOS
Signed-off-by: Jonathan Wright <quaggy@gmail.com>
2023-10-01 11:11:28 -07:00
a1346054
d69d21b036 bash: Fix shellcheck warnings
Signed-off-by: a1346054 <36859588+a1346054@users.noreply.github.com>
2021-10-14 14:40:10 +02:00
Simon McVittie
a6c90c516b Add SPDX-License-Identifier for files that already specify license
This is a step towards REUSE compliance. Third-party files that we do
not otherwise edit (git.mk, m4/attributes.m4) are excluded here.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-08-31 12:32:40 +01:00
Simon McVittie
02e3a30081 tests: Use $() in preference to backquotes
Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-28 11:11:54 +01:00
Simon McVittie
8f854f4ddd tests: Remove a useless use of cat
Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-28 11:11:53 +01:00
Simon McVittie
33ebfa862d tests: Really clean up test temporary directory
The flag file we create and the flag file we check for were not in sync.
Also similarly correct the variable name in an info message.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-28 11:11:35 +01:00
Simon McVittie
7b514a097f libtest: Add directive and 'set -e' for better shellcheck diagnostics
Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-28 11:11:34 +01:00
Simon McVittie
165bbf9647 tests: Remove unnecessary nesting
Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-28 11:11:33 +01:00
Simon McVittie
97979be1c9 tests: Quote more defensively
Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-28 11:11:32 +01:00
Simon McVittie
4d03c2a727 Extract some common test setup into libtest.sh
This will allow test-run.sh to be split up into more/smaller scripts.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-28 11:11:29 +01:00
Simon McVittie
338ddc0eb4 libtest-core: Separate out bubblewrap-specific parts
extract_child_pid is specific to bubblewrap and wouldn't be useful to
share with the canonical copy of libtest-core in libostree.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-18 10:11:56 +01:00