summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2025-01-07 13:41:43 +0100
committerSebastian Holmin <sebastian.holmin@mullvad.net>2025-01-09 14:19:24 +0100
commita88510aca8c2b45abb4e13443b31cd1944dc0d4a (patch)
tree059006326e531c66762b064b7a43e4a59ebcc9d7 /test
parent12756f1b8c67fdae93053c235c9e00486799199a (diff)
downloadmullvadvpn-a88510aca8c2b45abb4e13443b31cd1944dc0d4a.tar.xz
mullvadvpn-a88510aca8c2b45abb4e13443b31cd1944dc0d4a.zip
Add doc-string
Diffstat (limited to 'test')
-rw-r--r--test/test-runner/src/logging.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-runner/src/logging.rs b/test/test-runner/src/logging.rs
index efee58d52f..706ff2eed3 100644
--- a/test/test-runner/src/logging.rs
+++ b/test/test-runner/src/logging.rs
@@ -123,6 +123,7 @@ async fn list_logs<T: AsRef<Path>>(log_dir: T) -> Result<Vec<PathBuf>, Error> {
Ok(paths)
}
+/// Read the contents of a file to string, optionally truncating the result by given amount of lines.
async fn read_truncated<T: AsRef<Path>>(
path: T,
truncate_lines: Option<usize>,