The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* add --quiet to systemd-run
this will avoid the `Press ^] three times within 1s to disconnect TTY.` message.
it's mentioned in the systemd-run man page too:
```
--quiet, -q
Suppresses additional informational output while running. This is particularly useful in combination with --pty when it will suppress the
initial message explaining how to terminate the TTY connection.
```
* add --quiet to the tests
* add --quiet to TestABSPKGBUILDRepoExistsPerms too
The io/ioutil package has been deprecated in Go 1.16. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>