tests: Check for TrafficGen as part of memcheck regression

Since protobuf is still considered optional we do not always have the
TrafficGen. Check before running the memcheck regression.
This commit is contained in:
Andreas Hansson 2016-11-30 11:15:21 -05:00
parent cd4b26b6ae
commit 2a56260d5d

View file

@ -39,6 +39,13 @@
# Authors: Jason Lowe-Power
# Andreas Hansson
import m5
from m5.objects import *
# the traffic generator is only available if we have protobuf support,
# so potentially skip this test
require_sim_object("TrafficGen")
# A wrapper around configs/example/memcheck.py
# For some reason, this is implicitly needed by run.py