check: disable HAVE_PRIVATENS by default
authorZorro Lang <zlang@kernel.org>
Thu, 6 Mar 2025 09:49:23 +0000 (17:49 +0800)
committerZorro Lang <zlang@kernel.org>
Thu, 6 Mar 2025 13:52:18 +0000 (21:52 +0800)
commit336784e3d854407dfaa77acfc6339ee7ec95625c
treeb03acc4136f54fcab351ee062bed24d6f1a0cf00
parent3bccc0e2312eca1a52b44a37927e536dba1f4e5d
check: disable HAVE_PRIVATENS by default

Currently we have 3 ways to run a test case in _run_seq():

  if [ -n "${HAVE_PRIVATENS}" ]; then
      ./tools/run_privatens "./$seq"
      ...
  elif [ -n "${HAVE_SYSTEMD_SCOPES}" ]; then
      systemd-run --quiet --unit "${unit}" --scope \
             ./tools/run_setsid "./$seq" &
      ...
  else
      ./tools/run_setsid "./$seq" &
      ...
  fi

The "privatens" way brings in some regressions. We need more time
to develop and test this way, it's not time let it to be the
first default choice, so isolate the HAVE_PRIVATENS initialization
by a TRY_PRIVATENS parameter, and disable it by default.

Set TRY_PRIVATENS=yes to give "privatens" a try, otherwise run in
old ways. This patch can be removed after "privatens" way is stable.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
check