Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old cpp testRunner #3576

Merged
merged 4 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ jobs:
cd trueblocks-core
git checkout ${{ github.head_ref }}
cd src/other/build_assets/remote_testing
CONFIG_FILE=$HOME/trueBlocks.toml bash test_with_docker.sh ${{ github.repository }} ${{ github.sha }} ${{ github.head_ref }} test-all
CONFIG_FILE=$HOME/trueBlocks.toml bash test_with_docker.sh ${{ github.repository }} ${{ github.sha }} ${{ github.head_ref }}
docker system prune -af --filter "until=1h"
echo "Results placed in /home/testuser/testing/${{ github.sha }}"
2 changes: 1 addition & 1 deletion docs/content/chifra/configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ aliases:
menu:
chifra:
parent: commands
weight: 2100
weight: 61000
toc: true
---

Expand Down
2 changes: 1 addition & 1 deletion docs/content/chifra/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ aliases:
menu:
chifra:
parent: commands
weight: 2200
weight: 71000
toc: true
---
## Global Options
Expand Down
21 changes: 21 additions & 0 deletions src/apps/chifra/pkg/colors/colors.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ func ColorsOff() {
BrightBlack = ""
}

func ColorsOn() {
Off = "\033[0m"
Red = "\033[31m"
Green = "\033[32m"
Yellow = "\033[33m"
Blue = "\033[34m"
Magenta = "\033[35m"
Cyan = "\033[36m"
White = "\033[37m"
Black = "\033[30m"
Bright = "\033[1m"
BrightRed = (Bright + Red)
BrightGreen = (Bright + Green)
BrightYellow = (Bright + Yellow)
BrightBlue = (Bright + Blue)
BrightMagenta = (Bright + Magenta)
BrightCyan = (Bright + Cyan)
BrightWhite = (Bright + White)
BrightBlack = (Bright + Black)
}

func Colored(s string) string {
s = strings.Replace(s, "{", Green, -1)
s = strings.Replace(s, "@", BrightYellow, -1)
Expand Down
8 changes: 5 additions & 3 deletions src/apps/chifra/pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package logger
import (
"fmt"
"io"
"log"
"math"
"os"
"strings"
Expand Down Expand Up @@ -154,11 +153,14 @@ func Error(v ...any) {
}

func Fatal(v ...any) {
log.Fatal(v...)
toLog(err, v...)
os.Exit(1)
}

func Panic(v ...any) {
log.Panic(v...)
s := fmt.Sprint(v...)
toLog(err, s)
panic(s)
}

func Progress(tick bool, v ...any) {
Expand Down
2 changes: 2 additions & 0 deletions src/dev_tools/sdkTester/generated/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# place holder
*.json
Loading
Loading