History log of /openbmc/phosphor-logging/test/elog_update_ts_test.cpp (Results 1 – 3 of 3)
Revision Date Author Comments
# fb978da4 21-Jan-2022 Matt Spinler <spinler@us.ibm.com>

Pull file path into elog Entry constructor

The path property on the FilePath interfaces was previously being set
after the entry object was created, sending a properties changed signal
after the int

Pull file path into elog Entry constructor

The path property on the FilePath interfaces was previously being set
after the entry object was created, sending a properties changed signal
after the interfaces added signal.

Since the path can be known at the time the entry is constructed, pass
it into the constructor instead so no extra signal will be sent.

Change-Id: I1150236d23cecb1df78e3fb4ae641c75b488af37

show more ...


# 7ec2ab7e 03-Apr-2020 Matt Spinler <spinler@us.ibm.com>

PEL: Make elog_update_ts_test more CI friendly

This testcase was intermittently failing in Jenkins with an error
that implied it could not write the log serialization file.

Sinc

PEL: Make elog_update_ts_test more CI friendly

This testcase was intermittently failing in Jenkins with an error
that implied it could not write the log serialization file.

Since all event logs serialize to the same directory, it's possible
other instances of this testcase, or elog_errorwrap_test, were running
at the same time and caused collisions. To try to fix that, make the
following changes:
* Make the elog ID, and hence the filename, be random
* If there is a save file by that ID already, get a new ID.
* Don't delete the save directory at the end, only the file, in case
another test is still using it.
* Also don't delete the save directory at the end of
elog_errorwrap_test, in case another jenkins job is running this at
the same time.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ib81015936d0cc673b330f49f1c703e8fa16853ae

show more ...


# 1e71a4dc 04-Mar-2020 Matt Spinler <spinler@us.ibm.com>

Support UpdateTimestamp log entry property

The UpdateTimestamp property says when an event log property was last
updated. On log creation, this field is initialized with the time that

Support UpdateTimestamp log entry property

The UpdateTimestamp property says when an event log property was last
updated. On log creation, this field is initialized with the time that
the log was created.

The only other time a log entry property can change is when the Resolved
property changes, so also added support there to update the new
UpdateTimestamp property.

While technically every property of the Entry interface is writeable,
there is no use case nor code for changing those in the field, so
UpdateTimestamp does not support those.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I9b1360b9c5424e130947045cee7b64ede6264829

show more ...