Skip to content

Commit 3d59950

Browse files
committed
fix test scripts
1 parent f3648ef commit 3d59950

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

scripts/prepare.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/bash
22

33
PARENTDIR=$(dirname "$current_dir")
4+
TESTSDIR="$PARENTDIR/tests"
45

56
blender \
67
-noaudio \
78
--background \
89
--python-use-system-env \
910
--python-exit-code 1 \
10-
--python $PARENTDIR/tests/prepare.py
11+
--python $TESTSDIR/prepare.py
1112

1213
exit $?

scripts/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

33
PARENTDIR=$(dirname "$current_dir")
4-
TESTFILE="$PARENTDIR/tests/results.txt"
4+
TESTSDIR="$PARENTDIR/tests"
5+
TESTFILE="$TESTSDIR/results.txt"
56

67
blender \
78
-noaudio \

tests/prepare.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def install_dependencies():
2323
dir_path = os.path.dirname(__file__)
2424
req_file = dir_path + "/../requirements-dev.txt"
2525

26+
subprocess.run([python, "-m", "pip", "install", "--upgrade", "pip"], check=True)
2627
subprocess.run([python, "-m", "pip", "install", "-r", req_file], check=True)
2728

2829
if __name__ == "__main__":

0 commit comments

Comments
 (0)