From owner-freebsd-testing@FreeBSD.ORG Wed Jun 11 21:56:18 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0D6937FA for ; Wed, 11 Jun 2014 21:56:18 +0000 (UTC) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D466A2BC5 for ; Wed, 11 Jun 2014 21:56:17 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id y20so362000ier.26 for ; Wed, 11 Jun 2014 14:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=LR/HQi1mGztpkbEFnreRR7T9D7seF6522p88gqDMZN4=; b=qRFXS8xmff9aO2ALosRM0hyx1WkMvKvMcoaMaYiEanDExZS3MhRB7Jg+cTEC19fuuO aVdEIPYO+XHsoxH4I17unHK+l9PpOtaLEl/pHzRXpvYBZRgVwgjQAPwBOc27DygfaOG6 U4wA4fZTOofnT86I0PQnS1I8++NsG4IGorXNHfL4+Rxvr9zc2qKwT0G67Yt+r5LEIBj7 PRINzueayI1o6FkXe1/iShVsAODmUOPL1BTkGt8F31Ma0zs/nBmGI+rXw+iFa2xikwTe CvPNl+EPJk1LSs1dubfgZE+EvxV11k298ckrClQsDCHlr5kVpp1wgk8HTuwZyACevtlV cF/Q== MIME-Version: 1.0 X-Received: by 10.50.138.105 with SMTP id qp9mr1149625igb.2.1402523776781; Wed, 11 Jun 2014 14:56:16 -0700 (PDT) Received: by 10.50.28.198 with HTTP; Wed, 11 Jun 2014 14:56:16 -0700 (PDT) Date: Wed, 11 Jun 2014 14:56:16 -0700 Message-ID: Subject: Dealing with potential TEST_METADATA and atf_set duplication From: Garrett Cooper To: kyua-discuss@googlegroups.com Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-testing@freebsd.org" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 21:56:18 -0000 Hello again Julio! I'm adding testcases that require root and I was wondering: 1. Should I add TEST_METADATA.test_app+= require.user="root" to the Makefile, which puts the necessary lua magic in the Kyuafile? 2. Should I add atf_set "required.user" "root" -- or atf_tc_set_md_var("require.user", "root") -- in the testcase header? 3. Should I add both items? There are test engineers that run testcases without isolation, e.g. /path/to/test_app testcase_name -- should we support this workflow, or not? Thanks! -Garrett