SIGN IN SIGN UP

chore: Isolate cmd tests cq dir and log file (#17320)

#### Summary

Fixes https://github.com/cloudquery/cloudquery/issues/17319

Some tests were sharing the default CQ dir `.cq` and the same log file, also no need to do `os.RemoveAll` on `t.TempDir()` as the test cleans it up automatically, but we do need to register the `CloseLogFile()` cleanup after `t.TempDir()` due to https://pkg.go.dev/testing#B.Cleanup:
> Cleanup functions will be called in last added, first called order.
E
Erez Rokah committed
c9acaa5caa51d8491bf83db3fd886683b58e2eb3
Parent: 06345e6
Committed by GitHub <noreply@github.com> on 4/3/2024, 3:32:43 PM