Skip to content

Commit

Permalink
build mdbook
Browse files Browse the repository at this point in the history
  • Loading branch information
thir820 committed Aug 9, 2024
1 parent 2bbc974 commit 6b8f9ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ name: Deploy mdBook site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches:
- main
- SDK_1.3

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 0 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# EB corbos Linux SDK

![Elektrobit](/assets/logo.png =300x)

This is the documentation for the EB corbos Linux built on Ubuntu SDK.
9 changes: 5 additions & 4 deletions robot_tests/lib/CommManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def wait_for_regex(self, regex: str, timeout: int = -1) -> Optional[re.Match]:
if m:
return m

def execute(self, message, timeout: int = 1) -> Optional[str]:
def execute(self, message, timeout: int = -1) -> Optional[str]:
"""
Read all lines produced by the given message
"""
Expand All @@ -184,6 +184,8 @@ def execute(self, message, timeout: int = 1) -> Optional[str]:
start_time = time.time()
while True:
if timeout > 0 and time.time() - start_time >= timeout:
logging.error(
'Execute "%s" failed because of timeout %s!', message, timeout)
return None

line = self.interface.next_line(timeout=timeout)
Expand All @@ -192,10 +194,9 @@ def execute(self, message, timeout: int = 1) -> Optional[str]:

if line == ter:
logging.info('Line %s matches terminator...', line)
break
buf += line
return buf

return buf
buf += line

def login_to_vm(self, user: str = 'root', password: str = 'linux',
shell_prompt: str = '.*#.*') -> bool:
Expand Down

0 comments on commit 6b8f9ee

Please sign in to comment.