Add systemd circular dependency check
It's usefull add circular dependency check for systemd units.
The error log if had circular dependency:
```
Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Found ordering cycle on xyz.openbmc_project.Software.BMC.Updater.service/start
Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Found dependency on sel-ready.target/start
Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Found dependency on xyz.openbmc_project.Logging.IPMI.service/start
Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Found dependency on xyz.openbmc_project.Logging.service/start
Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Found dependency on obmc-fru-fault-monitor.service/start
Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Found dependency on xyz.openbmc_project.AssetManager.service/start
Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Job xyz.openbmc_project.Software.BMC.Updater.service/start deleted to break ordering cycle start
Mar 10 06:20:45 g220b systemd[1]: Queued start job for default target Multi-User System.
```
I think this is good to check it in CI.
Tested:
```
~# python3 -m robot -v OPENBMC_HOST:xx.xx.xx.xx redfish/test_xit.robot
Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Found ordering cycle on xyz.openbmc_project.Software.BMC.Updater.service/start
Verify No BMC Dump And Application Failures In BMC :: Verify no BM... | FAIL |
'Mar 10 06:20:45 g220b systemd[1]: xyz.openbmc_project.AssetManager.service: Found ordering cycle on xyz.openbmc_project.Software.BMC.Updater.service/start' should be empty.
------------------------------------------------------------------------------
Test Xit :: This suite is to run some test at the end of execution. | FAIL |
1 test, 0 passed, 1 failed
==============================================================================
```
Change-Id: I3288106b06399acf22fa44cba3b3d0fa69944cfc
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
diff --git a/extended/test_bmc_reset_loop.robot b/extended/test_bmc_reset_loop.robot
index e561355..56a7709 100644
--- a/extended/test_bmc_reset_loop.robot
+++ b/extended/test_bmc_reset_loop.robot
@@ -19,7 +19,7 @@
${CHECK_FOR_ERRORS} ${1}
# Error strings to check from journald.
-${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start
+${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start|Found ordering cycle
*** Test Cases ***
diff --git a/redfish/extended/test_basic_ci.robot b/redfish/extended/test_basic_ci.robot
index f976e1f..e4f0396 100644
--- a/redfish/extended/test_basic_ci.robot
+++ b/redfish/extended/test_basic_ci.robot
@@ -15,7 +15,7 @@
*** Variables ***
# Error strings to check from journald.
-${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start
+${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start|Found ordering cycle
${STANDBY_REGEX} Startup finished in
${SKIP_ERROR} ${EMPTY}
diff --git a/redfish/test_xit.robot b/redfish/test_xit.robot
index 3c5f4b9..57dd3fe 100644
--- a/redfish/test_xit.robot
+++ b/redfish/test_xit.robot
@@ -10,7 +10,7 @@
*** Variables ***
# Error strings to check from journald.
-${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start
+${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start|Found ordering cycle
${SKIP_ERROR} ${EMPTY}
diff --git a/tests/test_xit.robot b/tests/test_xit.robot
index c60af1f..b1056c6 100644
--- a/tests/test_xit.robot
+++ b/tests/test_xit.robot
@@ -10,7 +10,7 @@
*** Variables ***
# Error strings to check from journald.
-${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start
+${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start|Found ordering cycle
*** Test Cases ***