Closed omajid closed 2 months ago
@nicrowe00 What do you think? lttng-ust is an optional dependency. Should we force it to be installed for the sake of this test?
@omajid I'm inclined to say yes, we should force-install it for the test, just to verify that everything is as expected with the dependency. I don't mind though if we decide not to force-install it as it is optional like you mentioned. It depends on how worried we are about optional dependencies.
The goal of the test is to verify that lttng is working, we shouldn't make it PASS
the test when a required dependency is missing.
@omajid I don't know what triggered the PR. If there is an environment where lttng is not present, you can describe it using a trait (like no-lttng
), and add it as skipWhen
to the test.json
. In that environment you can set the trait by using the --trait
argument on the test runner.
The goal of the test is to verify that lttng is working
It isn't. The test is trying to verify that lttng-ust has support for systemtap.
Which, now that I think about it, is not something relevant for .NET at all. .NET doesn't care if lttng-ust has some specific feature or not, as long as it works for tracing. And this test doesn't verify whether lttng-ust can trace correctly. So whether this feature is present or not doesn't make a difference to .NET
I am tempted to just delete this test.
If anything, this should be a test in lttng-ust, not .NET.
I am tempted to just delete this test.
Sounds good to me.
The lttng-ust dependency is technically optional. If .NET is installed and that dependency isn't, assume .NET is okay.