Files
snapd/tests/lib/tools/not
Michael Vogt 308ed30a35 tests: make sure all placeholder files will create a meaningful error
We ran into an issue that in the autopkgtest run the tools directory
was not setup properly and the output in this case is super
misleading:
```
+ not test-snapd-sandbox -c 'touch /root/foo' | MATCH 'touch: .* Permission denied'
grep error: pattern not found, got:
```

This commit changes the placeholders to output a meaningful error
and return an non-zero to avoid confusing situations like this.
2022-01-14 09:18:07 +01:00

6 lines
274 B
Plaintext
Executable File

# This is a placeholder for the tool which is copied from snapd-testing-tools project
# The tool is copied from the tests/lib/external/snapd-testing-tools/tools directory
# while the project is being prepared
echo "placeholder called, source tree not properly setup"
exit 1