ext: Force testlib to only create one Log object
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Sat, 29 Aug 2020 09:35:11 +0000 (02:35 -0700)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Tue, 8 Sep 2020 18:28:17 +0000 (18:28 +0000)
commitc207628d1e45741f3874286b3177d5cc00204ead
treebfeff5a1d12140f22cb1cf8250da2068aa32cf4e
parent5bce6dc526e6508d754df73b3a19ea1c7d502284
ext: Force testlib to only create one Log object

Log object should remain being a singleton throughout the program.
The current code creates multiple Log objects, which at least
causes the issues of missing outputs in stdout.

E.g., "Logging call to command", which logs which command is
being called in a subprocess, is missing from stdout.

Change-Id: I96c5dd79c4f14e0a013c15d42d202397488d56b6
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33715
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
ext/testlib/runner.py