@@ -96,7 +96,7 @@ def parse_memory(self, memory_str):
96
96
97
97
98
98
def extract_test_no (self , test_path ):
99
- return os .path .split (os .path .splitext (test_path )[0 ])[1 ][3 :]
99
+ return os .path .split (os .path .splitext (test_path )[0 ])[1 ][len ( self . ID ) :]
100
100
101
101
102
102
def extract_file_name (self , file_path ):
@@ -730,21 +730,21 @@ def run(self, args):
730
730
self .compilers , self .timetool_path = self .validate_arguments (args )
731
731
732
732
title = self .config ["title" ]
733
- print ("Task %s (%s)" % (title , self .ID ))
733
+ print ("Task: %s (tag: %s)" % (title , self .ID ))
734
734
config_time_limit = self .config ["time_limit" ]
735
735
config_memory_limit = self .config ["memory_limit" ]
736
736
self .time_limit = args .tl * 1000.0 if args .tl is not None else config_time_limit
737
737
self .memory_limit = args .ml * 1024 if args .ml is not None else config_memory_limit
738
738
self .cpus = args .cpus or mp .cpu_count ()
739
739
if self .time_limit == config_time_limit :
740
- print (" Time limit (in ms):" , self .time_limit )
740
+ print (f' Time limit: { self .time_limit } ms' )
741
741
else :
742
- print (" Time limit (in ms):" , self .time_limit ,
742
+ print (f' Time limit: { self .time_limit } ms' ,
743
743
util .warning (("[originally was %.1f ms]" % config_time_limit )))
744
744
if self .memory_limit == config_memory_limit :
745
- print (" Memory limit (in kb):" , self .memory_limit )
745
+ print (f' Memory limit: { self .memory_limit } kB' )
746
746
else :
747
- print (" Memory limit (in kb):" , self .memory_limit ,
747
+ print (f' Memory limit: { self .memory_limit } kB' ,
748
748
util .warning (("[originally was %.1f kb]" % config_memory_limit )))
749
749
self .scores = collections .defaultdict (int )
750
750
print ("Scores:" )
@@ -758,6 +758,16 @@ def run(self, args):
758
758
print ()
759
759
760
760
self .tests = self .get_tests (args .tests )
761
+
762
+ if len (self .tests ) > 0 :
763
+ print (util .bold ('Tests that will be run:' ), ' ' .join ([self .extract_file_name (test ) for test in self .tests ]))
764
+
765
+ example_tests = [test for test in self .tests if self .get_group (test ) == 0 ]
766
+ if len (example_tests ) == len (self .tests ):
767
+ print (util .warning ('Running only on example tests.' ))
768
+ else :
769
+ print (util .warning ('There are no tests to run.' ))
770
+
761
771
self .groups = list (sorted (set ([self .get_group (test ) for test in self .tests ])))
762
772
self .possible_score = self .get_possible_score (self .groups )
763
773
0 commit comments