From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Tests and python scripts Date: Fri, 10 Apr 2015 13:13:13 +0100 Message-ID: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1428668318 11739 80.91.229.3 (10 Apr 2015 12:18:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2015 12:18:38 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 10 14:18:38 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YgXtN-0004Zf-PA for ged-emacs-devel@m.gmane.org; Fri, 10 Apr 2015 14:18:37 +0200 Original-Received: from localhost ([::1]:39009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgXtM-0002bK-RT for ged-emacs-devel@m.gmane.org; Fri, 10 Apr 2015 08:18:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgXt9-0002bC-Qm for emacs-devel@gnu.org; Fri, 10 Apr 2015 08:18:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgXt9-00036Q-1i for emacs-devel@gnu.org; Fri, 10 Apr 2015 08:18:23 -0400 Original-Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:35983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgXt8-00036A-Q8 for emacs-devel@gnu.org; Fri, 10 Apr 2015 08:18:22 -0400 Original-Received: by lagv1 with SMTP id v1so11600666lag.3 for ; Fri, 10 Apr 2015 05:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:date:message-id:subject:from:to :content-type; bh=UNSRkMBRbRixyCg6RxrW5Y7uemRgUoqaoOuHiVs3zDk=; b=l+FiyunHznf02tQf1CbRs/K8HGBK/Tv+9sz3OvHr87CRwm1scfOMkwqvBOBkRJPy7n IO+VJB9udm2tQbMBtXm2ulFyX5N79M39sAK3ZVocys4fM+mF9wMF4RejvGV6AOa+p3m5 VtPw6hQqh1h4hDyQINL6Ph/U486aBooxBU3ghcLtKdk3b0DoRwcWsCVn6zQGcnjlwajM 0Kb8/N/Au2lnWZ4aggX5PJLxYQsCrlY4XvOGsQ32P3X7eIyWg90PiEC+0c7yk/Pn6goB ftSwNuOIHVJjav3p+pda5T09y+wD5zX6W++eb3pPRfi0MCMCnb6P+T0Nu8oAKMpF3X20 UEUA== X-Received: by 10.112.204.6 with SMTP id ku6mr1136620lbc.73.1428667993304; Fri, 10 Apr 2015 05:13:13 -0700 (PDT) Original-Received: by 10.25.150.131 with HTTP; Fri, 10 Apr 2015 05:13:13 -0700 (PDT) X-Google-Sender-Auth: hVo67glHzKluxo3uuOBgTSPlYSc X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185260 Archived-At: In order to test package.el async function's I need to access an actual webserver (as opposed to a regular directory). For that purpose, I've written a test that uses a python2 script to locally serve a directory. It works fine on my computer, but, before pushing, I'd like to check what's the correct protocol for running scripts in the tests? 1. Can I simply do (start-process "server" nil "python2" script-file)? I imagine hydra will have python available, but is that the right executable name? 2. Does this external dependency need to mentioned anywhere? Or do I just check `executable-find' as part of the test? 3. Any other considerations? Cheers Artur