mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 17:50:16 +01:00
ifcfg/tests: fix evaluating environment variable to regenerate test files
Fixes:1ae6719cf1('ifcfg-rh/tests: evalute environment for $NMTST_IFCFG_RH_UPDATE_EXPECTED only once') (cherry picked from commit02832b03ee)
This commit is contained in:
parent
722c7805e4
commit
3f9958451f
1 changed files with 2 additions and 2 deletions
|
|
@ -188,8 +188,8 @@ _assert_expected_content(NMConnection *connection, const char *filename, const c
|
|||
if (G_UNLIKELY(rewrite == 0)) {
|
||||
rewrite = (g_getenv("NMTST_IFCFG_RH_UPDATE_EXPECTED")
|
||||
|| nm_streq0(g_getenv("NM_TEST_REGENERATE"), "1"))
|
||||
? -1
|
||||
: 1;
|
||||
? 1
|
||||
: -1;
|
||||
if (!g_atomic_int_compare_and_exchange(&rewrite_static, 0, rewrite))
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue