(*args, **kwargs)
| 169 | # str, ordered, unordered, arg, input_file, output_file, target_path |
| 170 | # kwarg: stdout is text that will be printed on success. |
| 171 | def command(*args, **kwargs): |
| 172 | global known_patterns |
| 173 | global program_name |
| 174 | stdout = kwargs.get("stdout", None) |
| 175 | pattern = ordered(*args) |
| 176 | known_patterns += [(pattern, stdout)] |
| 177 | if program_name is None: |
| 178 | program_name = args[0] |
| 179 | else: |
| 180 | assert(program_name == args[0]) |
| 181 | |
| 182 | # Use this to filter the recognized commands, based on the properties |
| 183 | # passed to b2. |
no test coverage detected