From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDAB01FBEA9 for ; Fri, 3 Jan 2025 16:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735923128; cv=none; b=W7wKh+covxJx3TrCsc5WdN7oHmSX1m2ce9JXBRlD26GaW+uGeNqcXCzXb87t342GaK/mZyznMtzCScFlhUI1XQmWpQWLpFUDbTLPFNXvVemPOjPrXztxtQGWQ9MKD1UGeJFMxL+4U5McS9k/UtXRL78vSU9nyPOoQ0jJmtqx+GQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735923128; c=relaxed/simple; bh=mjiYXGCODLkQXzX1DOwC3J88sECqKnzrrSBYySr/wnw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jm+/HodQZFUAo/feZwSKRRlyogmT1skpq/aNtWso4mWVC0JbNF/cIDJnkkve+JN/i4cYmDG3OLEBbI21TOtgxsAfHPD1PiEBcItCiQ3OVqAq5pLLglKKgs75PYe6DR9qy5bsrV0om8IuKAotP/di4kN/pWXisZBJ5qFqkPxOTQ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hceakV/z; arc=none smtp.client-ip=209.85.166.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hceakV/z" Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-3a7d7db4d89so39670995ab.1 for ; Fri, 03 Jan 2025 08:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1735923126; x=1736527926; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8y20AKvrlhHT/NR7chuzvdZkYAaY6m67XQn554j7Zuo=; b=hceakV/zBo6ZVGDdRw8bMx4+qb4yrIIlhH2gf2XaTh/FdUBwWT92HudVZygDM7Zc9D RZL1ydqXPCIgTiXhpY2B5ulU+rK/702pwrprdNyqAdNVybQa3VDlriKxlnHYFxAvo2ic 9l9hZjK+0A2+nhuai5BHvQMAgkigyosNkk9KA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735923126; x=1736527926; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8y20AKvrlhHT/NR7chuzvdZkYAaY6m67XQn554j7Zuo=; b=dogtRnfHZKYOdXiaP0uIg9qiYZMNy84UnCgsSS1G+6r9JPJ4aJoqofC3FuAqa7Qevs tBzEJiOhkttTDl4KvjwUKo+JYYVxn2QlQN37udaT1tRRluoL6H4+bdxfwyYCIeLTtaOR YiWQB4aXArZ0KGEh3fv+VsG/iLIsLGxSX+LBHpEYWwXewq6oYDPZkF96Gc5PtNMgNfHC OhxaqRQKjpJb6lKmTITg2OYjsZCxm/4cahjVEc4EtkeOPzJBz1snmPSrQM3eFtfQ4n9U ZgMd9IHlqNpTLS2lIJhRmSzhNJkg0ENBa/T9Nved8AMO0DEj9v2dztJkqr0Gpp4lSMZl 2iQQ== X-Forwarded-Encrypted: i=1; AJvYcCW60NxUgYWxF5WdLB28xU3BJnmC+KRPpu/i/67Qr86LRdQBMYAUBhIveancxG5fKzG3LTurUw+G+dzOg8A=@vger.kernel.org X-Gm-Message-State: AOJu0YyP6A81kp/5pH1DpNsO8sr+Q6EdbiIOG7p6KVwQXHu2fbTievNr SG/x7kBJ7ufvlCsmcGoSMvOU9PQVvnaHmzvwP0mVhZXfFuli+6mN2h2Ii5loe9Y= X-Gm-Gg: ASbGncvul3dA9txvqW2BpR7Xm2CVd3CgOFf1fX5mkqnv7AClbexjYtba9Dd0/QVPN9K Z7VdSHo7LfnCWYcRnmoXguRMRQuyqQysJK457HtrYXgYqrGlwRbe1JVS4lqD8hzwNPYivu1AuQA 92rpX5s8NguERsifM4gXIzPjTPiXXcys+Z5wXq8lLbb6DzdpfQ143EMfPdQXNYyRTByeh/yRTfC QOMf1Cq/bRjs/pEtj4BpIQR67B8ildpg4fvPiGFuON3cKGDuyfuw7EpPwTS9YgNZgrg X-Google-Smtp-Source: AGHT+IEugjV3zliG7kw7326pTYTQNLAMH/Xk38n1hocZsMo5qMppbROeVqxLez+objvIxR4DQ5xt0w== X-Received: by 2002:a05:6e02:b2e:b0:3a7:91a4:c752 with SMTP id e9e14a558f8ab-3c2d5919b63mr514894615ab.23.1735923125881; Fri, 03 Jan 2025 08:52:05 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3c0dfb32128sm83710575ab.48.2025.01.03.08.52.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jan 2025 08:52:05 -0800 (PST) Message-ID: <6554116e-0fa9-4a2b-baa2-1c9b82c31460@linuxfoundation.org> Date: Fri, 3 Jan 2025 09:52:04 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 1/2] selftests: tmpfs: Add Test-skip if not run as root To: Shivam Chaudhary , shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20250102100459.1291426-1-cvam0000@gmail.com> <20250102100459.1291426-2-cvam0000@gmail.com> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/3/25 09:36, Shivam Chaudhary wrote: > > On 03/01/25 3:24 AM, Shuah Khan wrote: >> On 1/2/25 03:04, Shivam Chaudhary wrote: >>> Add 'ksft_exit_skip()', if  not run as root, with an appropriate >>> Warning. >>> >>> Add 'ksft_print_header()' and 'ksft_set_plan()' to structure test >>> outputs more effectively. >>> >>> Test logs: >>> >>> Before Change: >>> - Without root >>>   error: unshare, errno 1 >>> >>> - With root >>>   No, output >>> >>> After change: >>> >>> - Without root >>> TAP version 13 >>> 1..1 >>> ok 2 # SKIP This test needs root to run! >>> Totals: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0 >>> >>> - With root >>> TAP version 13 >>> 1..1 >> >> How are you running this test to see the before ad after >> results? > > I'm doing the unit test, meaning, I'm building the test separatley and running it > > to ensure the the code works as expected. > When you run "make kselftest TARGETS=tmpfs", do you see duplicate ktap output? Rum the command and send me the output. thanks, -- Shuah