summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-10 01:47:13 -0600
committerJeff Carr <[email protected]>2024-12-10 01:47:13 -0600
commit8ba815f12e47c182b8407a79cdf9f8a6b8cf1a64 (patch)
tree202dced6cc825f9f9c7efa907307106cff0b97f3
parent2b21ee65d7ad92d89fbe457e85756ee996dc4c61 (diff)
testing automation
-rw-r--r--main.go16
1 files changed, 15 insertions, 1 deletions
diff --git a/main.go b/main.go
index db82090..b5431b6 100644
--- a/main.go
+++ b/main.go
@@ -89,7 +89,9 @@ func main() {
if argv.Build {
if err := forge.Build(argvRepo, nil); err == nil {
okExit("build worked")
+ argvRepo.RunEcho([]string{"ls", "-l"})
} else {
+ argvRepo.RunEcho([]string{"ls", "-l"})
badExit(err)
}
}
@@ -214,7 +216,19 @@ func build() error {
}
}
if argv.Build {
- return forge.Build(argvRepo, nil)
+ err := forge.Build(argvRepo, nil)
+ pwd, _ := os.Getwd()
+ if err == nil {
+ log.Info("this totally worked", pwd)
+ shell.RunEcho([]string{"ls", "-l"})
+ log.Info("ran ls")
+ } else {
+ log.Info("this totally did not work", pwd)
+ shell.RunEcho([]string{"ls", "-l"})
+ log.Info("ran ls")
+ }
+ return err
+
}
log.Info("skipping build")
return nil