sanitycheck: outdir should not be relative to ZEPHYR_BASE
We should leave ZEPHYR_BASE alone and create the test output wherever
we are running.
This will support running sanitycheck on test roots other than zephyr's
main git repo.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index 3f90a73..8c82229 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -2532,8 +2532,9 @@
"--footprint-threshold=0")
parser.add_argument(
"-O", "--outdir",
- default="%s/sanity-out" % ZEPHYR_BASE,
+ default="%s/sanity-out" % os.getcwd(),
help="Output directory for logs and binaries. "
+ "Default is 'sanity-out' in the current directory. "
"This directory will be deleted unless '--no-clean' is set.")
parser.add_argument(
"-n", "--no-clean", action="store_true",