mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 11:50:29 +01:00
ifcfg-rh/tests: regenerate .cexpected files with NM_TEST_REGENERATE=1
The tests already honored the environment variable $NMTST_IFCFG_RH_UPDATE_EXPECTED to indicate that the .cexpected files should be written by the tests. However, in the meantime, we instead use NM_TEST_REGENERATE=1 at various places for this purpose. Honor that flag as well.
This commit is contained in:
parent
09031978bb
commit
f69fb04cd0
1 changed files with 2 additions and 1 deletions
|
|
@ -185,7 +185,8 @@ _assert_expected_content (NMConnection *connection, const char *filename, const
|
|||
|
||||
if ( len_expectd != len_written
|
||||
|| memcmp (content_expectd, content_written, len_expectd) != 0) {
|
||||
if (g_getenv ("NMTST_IFCFG_RH_UPDATE_EXPECTED")) {
|
||||
if ( g_getenv ("NMTST_IFCFG_RH_UPDATE_EXPECTED")
|
||||
|| nm_streq0 (g_getenv ("NM_TEST_REGENERATE"), "1")) {
|
||||
if (uuid) {
|
||||
gs_free char *search = g_strdup_printf ("UUID=%s\n", uuid);
|
||||
const char *s;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue