]> git.lttng.org Git - lttng-tools.git/commit
Clean-up: Tests: Provide default cwd when testing relayd working dir
authorKienan Stewart <kstewart@efficios.com>
Thu, 28 Nov 2024 18:41:06 +0000 (13:41 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 Dec 2024 15:55:37 +0000 (15:55 +0000)
commit799a0e20371c5fe6db9a0fa9d720f3cfa6f39fdb
tree906e7705ffbe5585058d4bdda2fdf104e06713dd
parentfaaa11c1e04c5e11d94d3a920d32d72149402e25
Clean-up: Tests: Provide default cwd when testing relayd working dir

In `tap.sh`, `is()` ends up aborting the test script if it is passed
an empty (null) value. When, for example, lttng-relayd fails to start,
the `cwd` will be empty as `readlink` will fail.

E.g. Output when a test fails and limits the runs:

```
...
ok 4 - lttng-relayd already started
  ---
    duration_ms: 12.914679
  ...

not ok 5 - Found lttng-relayd
  ---
    duration_ms: 49.119194
  ...

./tests/regression/tools/working-directory//../../..//utils/tap/tap.sh: line 288: 1: parameter null or not set
```

Change-Id: I54ac5c23a6d2604d261e8240679a827a12a57a1a
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/working-directory/test_relayd_working_directory
This page took 0.028807 seconds and 4 git commands to generate.