Commit 180efb56 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk check if MAC address is valid

parent 204114ab
......@@ -22,6 +22,8 @@ from ConfigParser import ConfigParser, NoOptionError
from optparse import OptionParser
from sha import sha as sha160
from ptsexcept import *
from gen_flash_image import check_mac
default_config_file = 'ptsdefault.cfg'
default_log_pattern = 'pts_tst_{runid}_{timestamp}_{board}_{serial}_{number}.txt'
......@@ -495,6 +497,8 @@ def main():
# store MAC address if needed
if options.mac_addr:
if not check_mac(options.mac_addr):
store_mac(options.test_path, options.mac_addr)
# decide what to do
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment