Skip to content

Commit

Permalink
Fix mineunit tests for Technic and CNC (#226)
Browse files Browse the repository at this point in the history
* Add modpaths, remove technic from CNC

* Add technic_cnc to error reporting
  • Loading branch information
S-S-X committed Oct 24, 2021
1 parent 2e5e043 commit e5e4cbe
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 34 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/mineunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ jobs:
comment: |
<details><summary><i>Mineunit failed regression tests, click for details</i></summary>
### Regression test log for technic:
### Regression test log for Technic CNC:
```
${{ steps.mineunit-cnc.outputs.mineunit-stdout }}
```
### Regression test log for Technic:
```
${{ steps.mineunit.outputs.mineunit-stdout }}
```
Expand Down
1 change: 1 addition & 0 deletions technic/spec/fixtures/pipeworks.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mineunit:set_modpath("pipeworks", "spec/fixtures")

_G.pipeworks = {}
_G.pipeworks.button_label = ""
Expand Down
1 change: 1 addition & 0 deletions technic_cnc/spec/fixtures/basic_materials.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mineunit:set_modpath("basic_materials", "spec/fixtures")

minetest.register_node(":basic_materials:concrete_block", {
description = "Mineunit concrete_block",
Expand Down
1 change: 1 addition & 0 deletions technic_cnc/spec/fixtures/default.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mineunit:set_modpath("default", "spec/fixtures")

minetest.register_node(":default:stone", {
description = "Mineunit stone",
Expand Down
2 changes: 1 addition & 1 deletion technic_cnc/spec/fixtures/digilines.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

mineunit:set_modpath("digilines", "fixtures")
mineunit:set_modpath("digilines", "spec/fixtures")

_G.digilines = {
_msg_log = {},
Expand Down
2 changes: 1 addition & 1 deletion technic_cnc/spec/fixtures/pipeworks.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

mineunit:set_modpath("pipeworks", "fixtures")
mineunit:set_modpath("pipeworks", "spec/fixtures")

_G.pipeworks = {
fs_helpers = {
Expand Down
28 changes: 0 additions & 28 deletions technic_cnc/spec/fixtures/technic.lua

This file was deleted.

3 changes: 0 additions & 3 deletions technic_cnc/spec/interaction_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ describe("CNC formspec interaction", function()
fixture("default")
fixture("basic_materials")
fixture("pipeworks")
-- Technic cannot be used for production without building complete technic network.
-- Running tests like that here might get too complicated thing to manage here.
--fixture("technic")
fixture("digilines")

sourcefile("init")
Expand Down

0 comments on commit e5e4cbe

Please sign in to comment.