Skip to content

Commit d2de1ad

Browse files
committed
另起shell导致丢环境?
1 parent 49bbdde commit d2de1ad

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

.github/workflows/bsp_buildings.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,6 @@ jobs:
442442
cmakeVersion: latest
443443
ninjaVersion: latest
444444

445-
- name: test cmake
446-
shell: bash
447-
run: |
448-
which cmake
449-
cmake --version
450-
which ninja
451-
ninja --version
452-
453445
- name: Install Arm ToolChains
454446
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && success() }}
455447
shell: bash
@@ -536,7 +528,6 @@ jobs:
536528
537529
- name: Bsp Scons Compile
538530
if: ${{ success() }}
539-
shell: bash
540531
env:
541532
RTT_BSP: ${{ matrix.legs.RTT_BSP }}
542533
RTT_TOOL_CHAIN: ${{ matrix.legs.RTT_TOOL_CHAIN }}

tools/ci/bsp_buildings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def run_cmd(cmd, output_info=True):
2121
res = 0
2222

2323
if output_info:
24-
res = os.system('/bin/bash -c' + '"' + cmd + " > output.txt 2>&1" + '"')
24+
res = os.system(cmd + " > output.txt 2>&1")
2525
else:
2626
res = os.system(cmd + " > /dev/null 2>output.txt")
2727

0 commit comments

Comments
 (0)