Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(arg): Investigate whitespace arguments error in GHA #130

Merged
merged 1 commit into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmds/core/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ exports.handler = async (argv) => {
process.env.PATH = fs.readFileSync(epf, 'utf8');
process.env.EMACSLOADPATH = fs.readFileSync(lpf, 'utf8');;

console.log(UTIL.cli_args(cmd));

let proc = child_process.spawn(UTIL.cli_args(cmd), { stdio: 'inherit', shell: true });

proc.on('close', function (code) {
Expand Down
9 changes: 5 additions & 4 deletions test/commands/exec/Eask
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
(package "exec"
"0.0.1"
"Test project for command exec")

(website-url "https://github.com/emacs-eask/exec")
(keywords "exec")

(package-file "exec.el")

(source "melpa")
(exec-paths "./bin/")

(source 'melpa)

(depends-on "emacs" "26.1")
(depends-on "ert-runner")
(depends-on "github-elpa")

(exec-paths "./bin/")
(depends-on "buttercup")

(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
3 changes: 3 additions & 0 deletions test/commands/exec/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ eask install-deps
eask exec ert-runner -h
eask exec github-elpa -h
eask exec echo hello world

eask exec buttercup -L .
eask exec buttercup -L . --pattern 'pattern 1'
36 changes: 36 additions & 0 deletions test/commands/exec/test/test-dummy.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
;;; test-dummy.el --- Dummy buttercup test -*- lexical-binding: t; -*-

;; Copyright (C) 2023 Shen, Jen-Chieh

;; This file is not part of GNU Emacs.

;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:
;;
;; Dummy buttercup test.
;;

;;; Code:

(describe "Dumm Test"
(it "pattern 1"
(let ((dummy-var-1 t))
(expect dummy-var-1 :to-be t)))
(it "pattern 2"
(let ((dummy-var-2 nil))
(expect dummy-var-2 :to-be nil))))

(provide 'test-dummy)
;;; test-dummy.el ends here