File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
src/main/java/zarr_implementations/jzarr Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 2
2
# https://stackoverflow.com/a/6393573/2700168
3
3
cd " ${0%/* } "
4
4
5
+ set -e
6
+ set -u
7
+ set -x
8
+
5
9
mvn clean package
6
- java -cp target/jzarr-1.0.0.jar zarr_implementations.jzarr.App " $@ "
10
+ java -cp target/jzarr-1.0.0.jar zarr_implementations.jzarr.App " $@ " && {
11
+ # Workaround for: https://github.com/bcdev/jzarr/issues/25
12
+ find ../../data/jzarr* -name .zarray -exec sed -ibak ' s/>u1/|u1/' {} \;
13
+ } || {
14
+ echo jzarr failed
15
+ exit 2
16
+ }
7
17
8
- # Workaround for: https://github.com/bcdev/jzarr/issues/25
9
- find ../../data/jzarr* -name .zarray -exec sed -ibak ' s/>u1/|u1/' {} \;
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ public static void main(String args[]) throws Exception {
78
78
String dsname = args [2 ];
79
79
ZarrArray verification = ZarrGroup .open (fpath ).openArray (dsname );
80
80
int [] shape = verification .getShape ();
81
- if (!Arrays .equals (new int []{} , shape )) {
81
+ if (!Arrays .equals (SHAPE , shape )) {
82
82
throw new RuntimeException (String .format (
83
- "shape-mismatch expected:{} found:{} " ,
84
- SHAPE , shape
83
+ "shape-mismatch expected:%s found:%s " ,
84
+ Arrays . toString ( SHAPE ), Arrays . toString ( shape )
85
85
));
86
86
}
87
87
return ; // EARLY EXIT
You can’t perform that action at this time.
0 commit comments