From patchwork Mon Apr 2 17:14:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10320083 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6390B60375 for ; Mon, 2 Apr 2018 17:15:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5169B28A37 for ; Mon, 2 Apr 2018 17:15:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40F5B28A3E; Mon, 2 Apr 2018 17:15:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2E6728A37 for ; Mon, 2 Apr 2018 17:15:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752920AbeDBRPC (ORCPT ); Mon, 2 Apr 2018 13:15:02 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:40781 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752881AbeDBRPB (ORCPT ); Mon, 2 Apr 2018 13:15:01 -0400 Received: by mail-pl0-f67.google.com with SMTP id x4-v6so4930494pln.7 for ; Mon, 02 Apr 2018 10:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=txjDcGNa+WSYILWU2A5NixcjRuHef/GtXzapgvZDins=; b=sUXBuZ9+h96c/dHbL6ww7gy0G6IquIXG2HCD4tQU/d+2wVlmMfcaY2zt+5veM05z3C Nnd+SAMgi2fBm+reFhk9C5A6g2W4UiCHJSZN+C1EMvIXIeY/wrCvF4wwtMYRTsxqDztt FzjG5CMbPhVD4yJRQaK61QbMH2eL/y1aoQCoLv4T+XKbs7HMNGmVv567ljbVYmMBHRtX IKaDsYu2BqJoFo/jz9t6VehPuHEahjWig9IBSaQ814Me8KCD6qdGRbB3lKvcMrOrrqTq RYRJpDSjQw0jvLrtw38ZTuLdBB5/8iKezFni/KPRhMi0yCamZw/LunYAg/BmqqEcQZCh wWIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=txjDcGNa+WSYILWU2A5NixcjRuHef/GtXzapgvZDins=; b=lApxipvok4WwzE36GRUaLfdrZpBI31PkSc8uei8blwFWcnHcJFpbFpgGnDiVzlI2Ef p4xaULuWmdMCqSIdYIOYpa3MqmDSDLYI7bsHZICN6HhKHAVYlqIgQ2MNQcfE/RklkLXm qiTF8s3iaC1codDEONcnQbbPlG5FeYUHUBGgka4Cmf5wLU44OvyvtgPdV+4iYXwKhH1S tXznDbnuXIbEaRsNIIbxwWPQnssCDjFv9+BF+ioWwG8nk1vuPWd1CK2JN6ZVJimB734K gONfo+tS6Liv23V8m1pffyLDP5X6ABuJNHL2G7r/6s7DXoFtWvUhPfhTQLlX1+p6OESp 9PUg== X-Gm-Message-State: AElRT7E8wl6ywKuxd7f0ekOdZaeUkW8evCfRrjl0JmTQFI5cWchUCYc7 l0yFMgdxDF/np0x18oGq7gRPk+YYvNw= X-Google-Smtp-Source: AIpwx4/ATvNJ/K0xN1xjt+jcxjSUdnKAaDSxMuone/Jag/0MUTQx1ryh6VzEQrIaVMxWH8C1Wr5U2A== X-Received: by 2002:a17:902:a589:: with SMTP id az9-v6mr10520922plb.283.1522689301272; Mon, 02 Apr 2018 10:15:01 -0700 (PDT) Received: from ebiggers-linuxstation.kir.corp.google.com ([2620:15c:17:3:dc28:5c82:b905:e8a8]) by smtp.gmail.com with ESMTPSA id d83sm1686143pfl.176.2018.04.02.10.14.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 10:15:00 -0700 (PDT) From: Eric Biggers To: Theodore Ts'o Cc: fstests@vger.kernel.org, Eric Biggers Subject: [xfstests-bld PATCH] test-appliance: fix use of undefined variable in gen_results_summary Date: Mon, 2 Apr 2018 10:14:13 -0700 Message-Id: <20180402171413.63324-1-ebiggers@google.com> X-Mailer: git-send-email 2.17.0.rc1.321.gba9d0f2565-goog Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This fixes the following Python error when no tests were run: Traceback (most recent call last): File "/usr/local/bin/gen_results_summary", line 22, in main() File "/usr/local/bin/gen_results_summary", line 19, in main sys.exit('No results file found in ' + results_dir) NameError: global name 'results_dir' is not defined Signed-off-by: Eric Biggers --- .../test-appliance/files/usr/local/bin/gen_results_summary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm-xfstests/test-appliance/files/usr/local/bin/gen_results_summary b/kvm-xfstests/test-appliance/files/usr/local/bin/gen_results_summary index be4401e..57c4a08 100755 --- a/kvm-xfstests/test-appliance/files/usr/local/bin/gen_results_summary +++ b/kvm-xfstests/test-appliance/files/usr/local/bin/gen_results_summary @@ -16,7 +16,7 @@ def main(): if gen_results_summary(args.results_dir, args.output_file, args.merge_file, args.verbose) == 0: - sys.exit('No results file found in ' + results_dir) + sys.exit('No results file found in ' + args.results_dir) if __name__ == "__main__": main()