Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
debarshiray committed Jun 26, 2023
1 parent 381de2c commit 927e2ea
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ubuntu-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: Foo
run: |
echo "SHELL: $SHELL"
echo "env | grep SHELL:"
env | grep SHELL
echo "useradd --defaults:"
useradd --defaults
echo 'cat /proc/$$/cmdline: '
cat /proc/$$/cmdline
my_script=$(cat /proc/$$/cmdline | tr '\000' ' ' | cut --delimiter ' ' --fields 3)
echo "script: '$my_script'"
cat "$my_script"
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -140,7 +153,7 @@ jobs:
working-directory: containers/toolbox

- name: System tests
run: bats --timing test/system
run: bats --timing test/system/001-version.bats test/system/002-help.bats test/system/101-create.bats
env:
TOOLBOX: /usr/local/bin/toolbox
working-directory: containers/toolbox
10 changes: 9 additions & 1 deletion test/system/setup_suite.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi
setup_suite() {
bats_require_minimum_version 1.7.0
echo "# test suite: Set up" >&3

echo "# SHELL: $SHELL" >&3
if $missing_dependencies; then
echo "# Missing dependencies" >&3
echo "# Forgot to run 'git submodule init' and 'git submodule update' ?" >&3
Expand All @@ -36,6 +36,14 @@ setup_suite() {
local os_release="$(find_os_release)"
local system_id="$(get_system_id)"
local system_version="$(get_system_version)"
echo "# system_id: $system_id" >&3
echo "# system_version: $system_version" >&3

env="$(env)"
echo "# env: $env" >&3

passwd="$(cat /etc/passwd)"
echo "# passwd: $passwd" >&3

_setup_environment
# Cache the default image for the system
Expand Down

0 comments on commit 927e2ea

Please sign in to comment.