85c85
< source[0] : M5 binary
---
> source[0] : gem5 binary
107a108,111
> # Create a default value for the status string, changed as needed
> # based on the status.
> status_str = "passed."
>
111c115
< # M5 terminated normally.
---
> # gem5 terminated normally.
140c144,147
< status = env.Execute(diffcmd, strfunction=None)
---
> diff_status = env.Execute(diffcmd, strfunction=None)
> # If there is a difference, change the status string to say so
> if diff_status != 0:
> status_str = "CHANGED!"
144,145c151,154
< else: # m5 exit status != 0
< # M5 did not terminate properly, so no need to check the output
---
> else: # gem5 exit status != 0
> # Consider it a failed test unless the exit status is 2
> status_str = "FAILED!"
> # gem5 did not terminate properly, so no need to check the output
147c156
< print 'M5 terminated with signal', signum(status)
---
> print 'gem5 terminated with signal', signum(status)
154,155c163,164
< # The test was skipped
< pass
---
> # The test was skipped, change the status string to say so
> status_str = "skipped."
157c166
< print 'M5 exited with non-zero status', status
---
> print 'gem5 exited with non-zero status', status
162,168c171
< # Generate status file contents based on exit status of m5 or diff-out
< if status == 0:
< status_str = "passed."
< elif status == 2:
< status_str = "skipped."
< else:
< status_str = "FAILED!"
---
> # Generate status file contents based on exit status of gem5 and diff-out
193a197,198
> elif status == "CHANGED!":
> status = termcap.Yellow + status[:-1] + termcap.Normal + status[-1]
197c202
< status = termcap.Yellow + status[:-1] + termcap.Normal + status[-1]
---
> status = termcap.Cyan + status[:-1] + termcap.Normal + status[-1]