File: 006.change-shell-to-fix-test.patch

package info (click to toggle)
pyenv 2.6.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,496 kB
  • sloc: sh: 4,914; python: 410; makefile: 161; ansic: 60
file content (24 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Changing shell to 'bash' to fix test execution
Author: Josenilson Ferreira da Silva <nilsonfsilva@hotmail.com>
Forwarded: not-needed
Last-Update: 2025-01-11
Index: pyenv/test/init.bats
===================================================================
--- pyenv.orig/test/init.bats
+++ pyenv/test/init.bats
@@ -46,13 +46,13 @@ create_executable() {
   mkdir -p "$PYENV_TEST_DIR"
   cd "$PYENV_TEST_DIR"
   cat > myscript.sh <<OUT
-#!/bin/sh
+#!/bin/bash
 eval "\$(pyenv-init -)"
 echo \$PYENV_SHELL
 OUT
   chmod +x myscript.sh
   run ./myscript.sh
-  assert_success "sh"
+  assert_success "bash"
 }
 
 @test "setup shell completions (fish)" {