sanitycheck: Error out when running sanitycheck from Windows

Running sanitycheck from Windows is not supported yet. Unfortunately,
the error message is obscure when a user is unaware of this and runs
it from Windows anyway.

This patch gives an easy to understand error message explaining this
issue.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2019-01-21 15:48:46 +01:00 committed by Anas Nashif
commit 56d7471b0c

View file

@ -159,11 +159,17 @@ Most everyday users will run with no arguments.
"""
import os
if os.name == 'nt':
print("Running sanitycheck on Windows is not supported yet.")
print("https://github.com/zephyrproject-rtos/zephyr/issues/2664")
exit(1)
import contextlib
import string
import mmap
import argparse
import os
import sys
import re
import subprocess