Skip to content

Commit

Permalink
Update test data in response to bazelbuild#121 (bazelbuild#137)
Browse files Browse the repository at this point in the history
PR bazelbuild#121 changed pkg_deb's behavior but didn't update test data to match.

Reported in PR bazelbuild#132.

Testing Done:
- `bazelisk test ...`
  • Loading branch information
Ryan Beasley authored Mar 11, 2020
1 parent 3349f12 commit 2b375a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/tests/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,18 @@ function check_deb() {
echo "Unable to test deb control files listing, too old dpkg-deb!" >&2
return 0
fi
local ctrl_listing="conffiles
config
control
templates"
local ctrl_listing="./conffiles
./config
./control
./templates"
# TODO: The config and templates come out with a+x permissions. Because I am
# currently seeing the same behavior in the Bazel sources, I am going to look
# at root causes later. I am not sure if this is WAI or not.
check_eq "$ctrl_listing" "$(get_deb_ctl_listing ${package})"
check_eq "-rw-r--r--" "$(get_deb_ctl_permission ${package} conffiles)"
check_eq "-rw-r--r--" "$(get_deb_ctl_permission ${package} config)"
check_eq "-rw-r--r--" "$(get_deb_ctl_permission ${package} control)"
check_eq "-rw-r--r--" "$(get_deb_ctl_permission ${package} templates)"
check_eq "-rw-r--r--" "$(get_deb_ctl_permission ${package} ./conffiles)"
check_eq "-rw-r--r--" "$(get_deb_ctl_permission ${package} ./config)"
check_eq "-rw-r--r--" "$(get_deb_ctl_permission ${package} ./control)"
check_eq "-rw-r--r--" "$(get_deb_ctl_permission ${package} ./templates)"
local conffiles="/etc/nsswitch.conf
/etc/other"
check_eq "$conffiles" "$(get_deb_ctl_file ${package} conffiles)"
Expand Down

0 comments on commit 2b375a0

Please sign in to comment.