Commit 33eea80a authored by Sasa Zhang's avatar Sasa Zhang
Browse files

minor changes on test_suite.py and init_devel.sh

parent 222c3192
Pipeline #190193 passed with stage
in 56 seconds
......@@ -4,6 +4,7 @@
macadam.py
metro.log
.idea/
usr/bin/
src/frontend/model
usr/share/metro/data/selftest/roadcast.xml
......@@ -48,7 +48,7 @@ mkdir -p usr/bin
ln -sTf ../../src/frontend/metro.py usr/bin/metro
echo ""
if which python-config >/dev/null; then
if which python3-config >/dev/null; then
PYTHON_INC=`python3-config --includes`
echo "* Python include path = "$PYTHON_INC
fi
......
......@@ -303,7 +303,7 @@ def process_xml_file(current_case_path, case_folder, error_value, verbosity=Fals
error_reference = '<' + key + '>' + str(value[0]) + '<' + key + '>'
error_test_suite_run = '<' + key + '>' + str(value[1]) + '<' + key + '>'
print('\t\t\t\t\t\t{}\t\t{}'.format(error_reference.ljust(20), error_test_suite_run.ljust(20)))
except FileNotFoundError:
except IOError:
pass
......@@ -348,7 +348,7 @@ def main():
# -------------------------------------------Clean up the output XML file-------------------------------------------
if args.clean:
if args.case or args.skip or args.error:
print("'--clean' can only be used individually. The METRo program will exit with code 0.")
print("'--clean' can only be used with '-v'.")
sys.exit(0)
for folder in sorted(os.listdir(test_suite_path)):
......@@ -360,13 +360,13 @@ def main():
if num_of_clean_up == 1:
print('File(s) that are successfully removed:')
print(test_suite_path + '/' + folder + '/roadcast_test_suite_run.xml')
except FileNotFoundError as e:
except IOError as e:
continue
if num_of_clean_up == 0:
print('There is nothing needs to be cleaned up.')
else:
if not verbosity:
print("Note: all 'roadcast_test_suite_run.xml' files are cleaned up.")
print("All 'roadcast_test_suite_run.xml' files are cleaned up.")
sys.exit(0)
# --------------------------------------------List of validated test cases------------------------------------------
......
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