diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-04-15 10:49:06 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-04-15 10:49:06 +0200 |
commit | 230ead6676696fede740bae877eb45a9a13f8e54 (patch) | |
tree | a9d2c4a123d9d09d965e7de8cd44fa08ed69bede | |
parent | a90cb12bf263a06fbe2e08978a6010138b672260 (diff) | |
download | golang-230ead6676696fede740bae877eb45a9a13f8e54.tar.gz |
Create fake home directory to pass the os/user test
-rwxr-xr-x | debian/rules | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index d0effbc1e..4566f32cc 100755 --- a/debian/rules +++ b/debian/rules @@ -16,11 +16,12 @@ override_dh_auto_clean: rm -f debian/*+ rm -f debian/build.stamp rm -f test/pass.out test/run.out test/times.out + rm -rf debian/home override_dh_auto_build: debian/build.stamp override_dh_auto_test: - $(no_check) || { cd $(CURDIR)/src && $(CURDIR)/debian/test.bash $(GOROOT)/pkg/tool/$(GOHOSTOS)_$(GOHOSTARCH); } + $(no_check) || { cd $(CURDIR)/src && mkdir $(CURDIR)/debian/home && HOME=$(CURDIR)/debian/home $(CURDIR)/debian/test.bash $(GOROOT)/pkg/tool/$(GOHOSTOS)_$(GOHOSTARCH); } override_dh_compress: dh_compress -Xusr/share/doc/$(PACKAGE)-doc/html -Xusr/share/doc/$(PACKAGE)-doc/godoc |