From nobody Wed Apr 24 12:35:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=patchew-devel-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1628269183; cv=none; d=zohomail.com; s=zohoarc; b=nh0mUM0KP8tM+Sz0FY2rsDGfmFCKMOkE+OxtH8SrnLgGhG2ormP0KDdYT5Ihoe4z8YYDuddS/yITmr3Hyhfa6ZuO2RtdqbChHDs/tJHQyyM2vtedQxTp8QN8qLcj/tFhwNPFWWz/AzxrfLMXEvSHyaIS0bLahqSivDrs+BQw5Io= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628269183; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=VKQiRSs9VlZp2RbVL3svTOtS9gum6VfGand++sgPJ6c=; b=P4b9yZLTe9ySvoQfy6DO7AmsYiTVB5Wub4SZzGZWRcJxl89uVzGkTxT//43QfdViw5wPB7NiD4Tt7iqRddLJ2Rl9pfGm+YomTXw9ma2WkaDJfLnB5UfGLTQq2mB+NtjIoHFKI4ARqf+R+C8E5ih1sS3G/hJXWfMPJvAg6PLn4R8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1628269183947183.96381881870866; Fri, 6 Aug 2021 09:59:43 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-167-vdRevzQTMsGjSTdwhBiZOA-1; Fri, 06 Aug 2021 12:59:39 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A5FD9185302E; Fri, 6 Aug 2021 16:59:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9BAA660C13; Fri, 6 Aug 2021 16:59:38 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3E44D181A2A7; Fri, 6 Aug 2021 16:59:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 176Gww0B027353 for ; Fri, 6 Aug 2021 12:58:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id 270BC6091B; Fri, 6 Aug 2021 16:58:58 +0000 (UTC) Received: from avogadro.lan (unknown [10.39.193.251]) by smtp.corp.redhat.com (Postfix) with ESMTP id 94D0C1B5C0 for ; Fri, 6 Aug 2021 16:58:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628269183; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=VKQiRSs9VlZp2RbVL3svTOtS9gum6VfGand++sgPJ6c=; b=jNjxFDI8+8e95JJJFhRsZH9s+Fxee4fQMwnE46TLP9GIGH8q+cMuveURs8KNbIGr39kaVw 3cpKXcRcSLtMHXlp5WJNdoI3oimi9LNHApgkbwhddCQOcJ3oJAAfsjJ5nNswaRosgk9Ex8 ZhqkhUPjugoZoQd5BvLGQHNCbVpMrxw= X-MC-Unique: vdRevzQTMsGjSTdwhBiZOA-1 From: Paolo Bonzini To: patchew-devel@redhat.com Date: Fri, 6 Aug 2021 18:58:41 +0200 Message-Id: <20210806165844.140447-2-pbonzini@redhat.com> In-Reply-To: <20210806165844.140447-1-pbonzini@redhat.com> References: <20210806165844.140447-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] tests: set default branch name X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=patchew-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628269185611100005 Content-Type: text/plain; charset="utf-8" git allows overriding the default branch name, but the tests configure the project in Patchew so that the default branch for the applier is "master". Signed-off-by: Paolo Bonzini --- tests/patchewtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/patchewtest.py b/tests/patchewtest.py index 33923d1..cc6f197 100644 --- a/tests/patchewtest.py +++ b/tests/patchewtest.py @@ -177,7 +177,7 @@ class PatchewTestCase(dj_test.LiveServerTestCase): def create_git_repo(self, name=3D"test-repo"): repo =3D os.path.join(self.get_tmpdir(), name) os.mkdir(repo) - subprocess.check_output(["git", "init"], cwd=3Drepo) + subprocess.check_output(["git", "init", "-bmaster"], cwd=3Drepo) subprocess.check_output(["git", "config", "user.name", "Patchew Te= st"], cwd=3Drepo) subprocess.check_output(["git", "config", "user.email", "test@patc= hew.org"], cwd=3Drepo) subprocess.check_output(["touch", "foo", "bar"], cwd=3Drepo) --=20 2.31.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://listman.redhat.com/mailman/listinfo/patchew-devel