- Fix issues in package installation and removal across different platforms (Ubuntu, macOS, Alpine, Arch). - Improve error handling and add sudo support where necessary. - Enhance screen status check to accurately reflect process activity. - Address minor bugs in `db.v`, `done.v`, and `net_test.v`. - Correct minor inconsistencies in package names.
18 lines
398 B
V
18 lines
398 B
V
module screen
|
|
|
|
import freeflowuniverse.herolib.ui.console
|
|
import freeflowuniverse.herolib.osal
|
|
import os
|
|
import time
|
|
|
|
pub fn testsuite_begin() ! {
|
|
mut screen_factory := new(reset: true)!
|
|
}
|
|
|
|
pub fn test_screen_status() ! {
|
|
mut screen_factory := new()!
|
|
mut screen := screen_factory.add(name: 'testservice', cmd: 'redis-server --port 1234')!
|
|
status := screen.status()!
|
|
assert status == .active
|
|
}
|